[pypy-svn] r63974 - pypy/branch/pyjitpl5-simplify/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Sat Apr 11 12:01:34 CEST 2009


Author: arigo
Date: Sat Apr 11 12:01:33 2009
New Revision: 63974

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/rpython/llinterp.py
Log:
Fix.  (Why didn't it crash earlier? Obscure)


Modified: pypy/branch/pyjitpl5-simplify/pypy/rpython/llinterp.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/rpython/llinterp.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/rpython/llinterp.py	Sat Apr 11 12:01:33 2009
@@ -1301,7 +1301,8 @@
             self.file.write(text.replace('\n', '\n'+self.indentation))
 
     def flush(self):
-        self.file.flush()
+        if self.file:
+            self.file.flush()
 
 def wrap_callable(llinterpreter, fn, obj, method_name):
     if method_name is None:



More information about the Pypy-commit mailing list