http://bugs.python.org/issue5544

Fix to the last checkin, correctly raise an exception on failure.
parent dc7c128d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment