diff mercurial/ui.py @ 16373:329887a7074c

merge with stable
author Matt Mackall <mpm@selenic.com>
date Fri, 06 Apr 2012 15:18:14 -0500
parents ae5f92e154d3 c14898df3b92
children f5dd179bfa4a
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Apr 06 15:16:30 2012 -0500
+++ b/mercurial/ui.py	Fri Apr 06 15:18:14 2012 -0500
@@ -483,7 +483,7 @@
             if not getattr(self.ferr, 'closed', False):
                 self.ferr.flush()
         except IOError, inst:
-            if inst.errno not in (errno.EPIPE, errno.EIO):
+            if inst.errno not in (errno.EPIPE, errno.EIO, errno.EBADF):
                 raise
 
     def flush(self):