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)
commit5aa7df320f35cb0d5acb81ff313b1cc02480c9b8 (patch)
treea8ae2a0cee952722cb23c7af038f6fd5bd3a10cb /Misc
parent9d38b0dcb2a0ca6fcaaff96642e98448f55633a3 (diff)
downloadcpython-5aa7df320f35cb0d5acb81ff313b1cc02480c9b8.zip
cpython-5aa7df320f35cb0d5acb81ff313b1cc02480c9b8.tar.gz
cpython-5aa7df320f35cb0d5acb81ff313b1cc02480c9b8.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 e6d9865..44e92c1 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -735,6 +735,7 @@ Ilya Sandler
Mark Sapiro
Ty Sarna
Ben Sayer
+sbt
Michael Scharf
Neil Schemenauer
David Scherer
diff --git a/Misc/NEWS b/Misc/NEWS
index 1ed049c..0f4e04b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -79,6 +79,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