Fix a comment.

This commit is contained in:
Barry Warsaw 2016-06-08 17:55:49 -04:00
parent 480e28538d
commit efe7256083
1 changed files with 2 additions and 1 deletions

View File

@ -423,7 +423,8 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
Py_DECREF(fdobj); Py_DECREF(fdobj);
if (self->fd < 0) { if (self->fd < 0) {
if (!PyErr_Occurred()) { 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, PyErr_Format(PyExc_ValueError,
"opener returned %d", self->fd); "opener returned %d", self->fd);
} }