Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r63687:5b847a6c3864
Date: 2013-04-27 13:34 +0200
http://bitbucket.org/pypy/pypy/changeset/5b847a6c3864/

Log:    Fix: directly output the error message here, because we're not in
        finalizer_perform().

diff --git a/pypy/module/_file/interp_file.py b/pypy/module/_file/interp_file.py
--- a/pypy/module/_file/interp_file.py
+++ b/pypy/module/_file/interp_file.py
@@ -45,7 +45,7 @@
             self.direct_close()
         except StreamErrors, e:
             operr = wrap_streamerror(self.space, e, self.w_name)
-            raise operr
+            operr.write_unraisable(self.space, "close method of ", self)
 
     def fdopenstream(self, stream, fd, mode, w_name=None):
         self.fd = fd
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to