Fix to the last checkin, correctly raise an exception on failure.
This commit is contained in:
Kristján Valur Jónsson 2009-03-24 13:51:36 +00:00
parent dc7c128d74
commit 8915e0e43a

View file

@ -84,8 +84,10 @@ internal_close(PyFileIOObject *self)
if (err < 0)
save_errno = errno;
Py_END_ALLOW_THREADS
} else
save_errno = errno;
} else {
save_errno = errno;
err = -1;
}
}
if (err < 0) {
errno = save_errno;