Commits

Armin Rigo committed 52f9588

issue1116: No objection, so go ahead and fix interp_iobase, even
though I don't really know it.

  • Participants
  • Parent commits 463589f

Comments (0)

Files changed (1)

File pypy/module/_io/interp_iobase.py

             try:
                 space.call_method(w_iobase, 'flush')
             except OperationError, e:
-                # if it's an IOError or ValueError, ignore it (ValueError is
-                # raised if by chance we are trying to flush a file which has
-                # already been closed)
-                if not (e.match(space, space.w_IOError) or
-                        e.match(space, space.w_ValueError)):
-                    raise
-        
+                # Silencing all errors is bad, but getting randomly
+                # interrupted here is equally as bad, and potentially
+                # more frequent (because of shutdown issues).
+                pass 
+
 
 class AutoFlusher(object):