]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Nov 2011 19:16:44 +0000 (20:16 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Nov 2011 19:16:44 +0000 (20:16 +0100)
commit5aa7df320f35cb0d5acb81ff313b1cc02480c9b8
treea8ae2a0cee952722cb23c7af038f6fd5bd3a10cb
parent9d38b0dcb2a0ca6fcaaff96642e98448f55633a3
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.
Lib/_pyio.py
Lib/test/test_io.py
Misc/ACKS
Misc/NEWS
Modules/_io/bufferedio.c