summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2016-06-08 21:55:49 (GMT)
committerBarry Warsaw <barry@python.org>2016-06-08 21:55:49 (GMT)
commitefe7256083bb94e85ce7b5ca5fa3122a5c0ce7a3 (patch)
tree24e3f6fd4ad019fe5cb83475bc1740743d446959 /Modules
parent480e28538d42b9cf8e8b2163bfa9e23e27b80793 (diff)
downloadcpython-efe7256083bb94e85ce7b5ca5fa3122a5c0ce7a3.zip
cpython-efe7256083bb94e85ce7b5ca5fa3122a5c0ce7a3.tar.gz
cpython-efe7256083bb94e85ce7b5ca5fa3122a5c0ce7a3.tar.bz2
Fix a comment.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_io/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 3d41d81..919cf50 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -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);
}