mercurial/ui.py
changeset 11416 caf10970950e
parent 11325 22a737306ba5
child 11600 76454cbc11e4
--- a/mercurial/ui.py	Wed Jun 16 22:54:58 2010 +0200
+++ b/mercurial/ui.py	Wed Jun 16 00:22:10 2010 +0200
@@ -369,7 +369,7 @@
             if not getattr(sys.stderr, 'closed', False):
                 sys.stderr.flush()
         except IOError, inst:
-            if inst.errno != errno.EPIPE:
+            if inst.errno not in (errno.EPIPE, errno.EIO):
                 raise
 
     def flush(self):