Commit 78ac891b authored by Victor Stinner's avatar Victor Stinner

Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,

it ignored I/O errors if at least the first C call read() succeed.
parent c559875c
......@@ -13,6 +13,9 @@ Core and Builtins
Library
-------
- Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
it ignored I/O errors if at least the first C call read() succeed.
- Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.
Backport of issue #16611.
......
......@@ -577,9 +577,9 @@ fileio_readall(fileio *self)
}
continue;
}
if (total > 0)
break;
if (errno == EAGAIN) {
if (total > 0)
break;
Py_DECREF(result);
Py_RETURN_NONE;
}
......
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