| commit | 68623614f095c8589ff17c004b9a05c537afc01f | [log] [tgz] |
|---|---|---|
| author | Benjamin Peterson <benjamin@python.org> | Thu Dec 20 11:53:11 2012 -0600 |
| committer | Benjamin Peterson <benjamin@python.org> | Thu Dec 20 11:53:11 2012 -0600 |
| tree | c42832d39e1919f5352410e9dabe4a7e04f944bd | |
| parent | 5ff3f73d94305900c0773e67ebdd9701d856a0fe [diff] [blame] |
call close on the underlying stream even if flush raises (closes #16597) Patch by Serhiy Storchaka.
diff --git a/Misc/NEWS b/Misc/NEWS index 509ea66..40e604a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -12,6 +12,9 @@ Core and Builtins ----------------- +- Issue #16597: Make BufferedIO.close call close() on the underlying stream if + invoking flush() fails. + - Issue #16722: In the bytes() constructor, try to call __bytes__ on the argument before __index__.