[pypy-svn] r10235 - pypy/dist/pypy/translator/tool

arigo at codespeak.net arigo at codespeak.net
Fri Apr 1 19:39:14 CEST 2005


Author: arigo
Date: Fri Apr  1 19:39:14 2005
New Revision: 10235

Modified:
   pypy/dist/pypy/translator/tool/buildpyxmodule.py
Log:
For now, writing out the warning messages is useful.


Modified: pypy/dist/pypy/translator/tool/buildpyxmodule.py
==============================================================================
--- pypy/dist/pypy/translator/tool/buildpyxmodule.py	(original)
+++ pypy/dist/pypy/translator/tool/buildpyxmodule.py	Fri Apr  1 19:39:14 2005
@@ -96,11 +96,12 @@
                                 os.environ[key] = value
             finally:
                 foutput, foutput = c.done()
+                data = foutput.read()
+                if data:
+                    fdump = open("%s.errors" % modname, "w")
+                    fdump.write(data)
+                    fdump.close()
         except:
-            data = foutput.read()
-            fdump = open("%s.errors" % modname, "w")
-            fdump.write(data)
-            fdump.close()
             print data
             raise
         # XXX do we need to do some check on fout/ferr?



More information about the Pypy-commit mailing list