diff options
| author | Robert Collins <robertc@robertcollins.net> | 2012-05-08 10:19:16 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2012-05-08 10:19:16 +1200 |
| commit | dc107f2a7e4027744daa20da644d2a36b60b9260 (patch) | |
| tree | 1aff8af8be370a1214329ad0166bd20a6f190ddf /python/subunit/__init__.py | |
| parent | 3f2280edfafb8bee61986f5c35494bb50a0c6ca4 (diff) | |
| download | subunit-dc107f2a7e4027744daa20da644d2a36b60b9260.tar.gz | |
Python3.1 support from Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 69ccc26..6015c0e 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -1280,7 +1280,7 @@ def _unwrap_text(stream): # Read streams if type(stream.read(0)) is str: return stream.buffer - except _UnsupportedOperation: + except (_UnsupportedOperation, IOError): # Cannot read from the stream: try via writes try: stream.write(_b('')) |
