]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a comment.
authorBarry Warsaw <barry@python.org>
Wed, 8 Jun 2016 21:55:49 +0000 (17:55 -0400)
committerBarry Warsaw <barry@python.org>
Wed, 8 Jun 2016 21:55:49 +0000 (17:55 -0400)
Modules/_io/fileio.c

index 3d41d81179977173c2562abe4603708032897d54..919cf502dca4ac1df8ff8b0b15ffab4483dfeabc 100644 (file)
@@ -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);
                 }