diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 0948781a62..702e25df61 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1144,7 +1144,7 @@ _Py_read(int fd, void *buf, size_t count) * handler raised an exception. */ assert(!PyErr_Occurred()); - if (!_PyVerify_fd(self->fd)) { + if (!_PyVerify_fd(fd)) { PyErr_SetFromErrno(PyExc_OSError); assert(errno == EBADF); return -1; |