[pypy-svn] r72094 - pypy/trunk/ctypes_configure

arigo at codespeak.net arigo at codespeak.net
Thu Mar 11 11:51:55 CET 2010


Author: arigo
Date: Thu Mar 11 11:51:54 2010
New Revision: 72094

Modified:
   pypy/trunk/ctypes_configure/cbuild.py
Log:
Fix for UnboundLocalError name 'c', used in the finally:.


Modified: pypy/trunk/ctypes_configure/cbuild.py
==============================================================================
--- pypy/trunk/ctypes_configure/cbuild.py	(original)
+++ pypy/trunk/ctypes_configure/cbuild.py	Thu Mar 11 11:51:54 2010
@@ -402,8 +402,8 @@
         data = ''
         try:
             saved_environ = os.environ.copy()
+            c = stdoutcapture.Capture(mixed_out_err = True)
             try:
-                c = stdoutcapture.Capture(mixed_out_err = True)
                 self._build()
             finally:
                 # workaround for a distutils bugs where some env vars can



More information about the Pypy-commit mailing list