[Python-checkins] r71608 - python/branches/py3k/Lib/_pyio.py

benjamin.peterson python-checkins at python.org
Wed Apr 15 00:02:09 CEST 2009


Author: benjamin.peterson
Date: Wed Apr 15 00:02:08 2009
New Revision: 71608

Log:
other places like this just catch IOError

Modified:
   python/branches/py3k/Lib/_pyio.py

Modified: python/branches/py3k/Lib/_pyio.py
==============================================================================
--- python/branches/py3k/Lib/_pyio.py	(original)
+++ python/branches/py3k/Lib/_pyio.py	Wed Apr 15 00:02:08 2009
@@ -1438,7 +1438,7 @@
     def close(self):
         try:
             self.flush()
-        except:
+        except IOError:
             pass  # If flush() fails, just give up
         self.buffer.close()
 


More information about the Python-checkins mailing list