summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-21 19:16:44 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-21 19:16:44 (GMT)
commit58fcf9f801d590b999401533154b63f4eb26ce6c (patch)
tree68936d8abfa0cf75e13ba48ef577248b69bb3a96 /Misc
parenta04b39b261ff8cba6c71bada5c884d39a88b4c82 (diff)
downloadcpython-58fcf9f801d590b999401533154b63f4eb26ce6c.zip
cpython-58fcf9f801d590b999401533154b63f4eb26ce6c.tar.gz
cpython-58fcf9f801d590b999401533154b63f4eb26ce6c.tar.bz2
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS6
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index c66edb7..7f7296e 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -796,6 +796,7 @@ Ilya Sandler
Mark Sapiro
Ty Sarna
Ben Sayer
+sbt
Andrew Schaaf
Michael Scharf
Andreas Schawo
diff --git a/Misc/NEWS b/Misc/NEWS
index c3765dd..4e43b45 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -80,6 +80,12 @@ Core and Builtins
Library
-------
+- Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
+ raised when the wrapped raw file is non-blocking and the write would block.
+ Previous code assumed that the raw write() would raise BlockingIOError, but
+ RawIOBase.write() is defined to returned None when the call would block.
+ Patch by sbt.
+
- Issue #13358: HTMLParser now calls handle_data only once for each CDATA.
- Issue #4147: minidom's toprettyxml no longer adds whitespace around a text