Kaydet (Commit) efe72560 authored tarafından Barry Warsaw's avatar Barry Warsaw

Fix a comment.

üst 480e2853
......@@ -423,7 +423,8 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
Py_DECREF(fdobj);
if (self->fd < 0) {
if (!PyErr_Occurred()) {
/* The opener returned -1. See issue #27066 */
/* The opener returned a negative but didn't set an
exception. See issue #27066 */
PyErr_Format(PyExc_ValueError,
"opener returned %d", self->fd);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment