summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-14 22:02:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-14 22:02:08 (GMT)
commit54f963e5bf4242a6fb0fbd18ca2ed782617102e0 (patch)
tree74c2da3b4e9e17a7d7188817d9b11dd1c828fcbf /Lib/_pyio.py
parent55fc9ce7e1db294df9a7affa44eeab1a66acefac (diff)
downloadcpython-54f963e5bf4242a6fb0fbd18ca2ed782617102e0.zip
cpython-54f963e5bf4242a6fb0fbd18ca2ed782617102e0.tar.gz
cpython-54f963e5bf4242a6fb0fbd18ca2ed782617102e0.tar.bz2
other places like this just catch IOError
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index b2d17e9..3fd1afe 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -1438,7 +1438,7 @@ class TextIOWrapper(TextIOBase):
def close(self):
try:
self.flush()
- except:
+ except IOError:
pass # If flush() fails, just give up
self.buffer.close()