summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2012-05-08 10:19:16 +1200
committerRobert Collins <robertc@robertcollins.net>2012-05-08 10:19:16 +1200
commit7f35e43bcb840d5117429f52c1ce2468f8a60cd9 (patch)
tree1aff8af8be370a1214329ad0166bd20a6f190ddf /python
parent3f4da01af42bb67e49ddb55c0aace2f8c76fa4ce (diff)
downloadsubunit-git-7f35e43bcb840d5117429f52c1ce2468f8a60cd9.tar.gz
Python3.1 support from Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/__init__.py2
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(''))