mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix to the last checkin, correctly raise an exception on failure.
This commit is contained in:
parent
dc7c128d74
commit
8915e0e43a
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue