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 | 7f35e43bcb840d5117429f52c1ce2468f8a60cd9 (patch) | |
| tree | 1aff8af8be370a1214329ad0166bd20a6f190ddf /python | |
| parent | 3f4da01af42bb67e49ddb55c0aace2f8c76fa4ce (diff) | |
| download | subunit-git-7f35e43bcb840d5117429f52c1ce2468f8a60cd9.tar.gz | |
Python3.1 support from Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'python')
| -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('')) |
