commit | 54f963e5bf4242a6fb0fbd18ca2ed782617102e0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Apr 14 22:02:08 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Apr 14 22:02:08 2009 +0000 |
tree | 74c2da3b4e9e17a7d7188817d9b11dd1c828fcbf | |
parent | 55fc9ce7e1db294df9a7affa44eeab1a66acefac [diff] |
other places like this just catch IOError
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 @@ def close(self): try: self.flush() - except: + except IOError: pass # If flush() fails, just give up self.buffer.close()