]> granicus.if.org Git - python/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)
commit58fcf9f801d590b999401533154b63f4eb26ce6c
tree68936d8abfa0cf75e13ba48ef577248b69bb3a96
parenta04b39b261ff8cba6c71bada5c884d39a88b4c82
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