]> 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:22:01 +0000 (20:22 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Nov 2011 19:22:01 +0000 (20:22 +0100)
commit7fe601c5bfa097b6c2aba78a3f517a1c4ded703d
tree797852f4b629bb31e82b7131a8407aac90566bc0
parent41dde32bf2f15d5dfcefc22e53c75da7e1503bfc
parent58fcf9f801d590b999401533154b63f4eb26ce6c
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