From 7f35e43bcb840d5117429f52c1ce2468f8a60cd9 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 8 May 2012 10:19:16 +1200 Subject: Python3.1 support from Arfrever Frehtes Taifersar Arahesis. --- python/subunit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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('')) -- cgit v1.2.1