commit | 58fcf9f801d590b999401533154b63f4eb26ce6c | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Mon Nov 21 20:16:44 2011 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Mon Nov 21 20:16:44 2011 +0100 |
tree | 68936d8abfa0cf75e13ba48ef577248b69bb3a96 | |
parent | a04b39b261ff8cba6c71bada5c884d39a88b4c82 [diff] |
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.