diff options
author | Armin Rigo <arigo@tunes.org> | 2010-03-11 10:51:54 +0000 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2010-03-11 10:51:54 +0000 |
commit | 792b76a90226de7505eca13029d8eaeff84e8dc9 (patch) | |
tree | 15d94a6e4d855d42d36cf611c484633dcada64bf /ctypes_configure | |
parent | reduce the number of iterations to make this test a little faster (diff) | |
download | pypy-792b76a90226de7505eca13029d8eaeff84e8dc9.tar.gz pypy-792b76a90226de7505eca13029d8eaeff84e8dc9.tar.bz2 pypy-792b76a90226de7505eca13029d8eaeff84e8dc9.zip |
Fix for UnboundLocalError name 'c', used in the finally:.
Diffstat (limited to 'ctypes_configure')
-rw-r--r-- | ctypes_configure/cbuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctypes_configure/cbuild.py b/ctypes_configure/cbuild.py index af9babab3c..dc996fe29c 100644 --- a/ctypes_configure/cbuild.py +++ b/ctypes_configure/cbuild.py @@ -402,8 +402,8 @@ class CCompiler: 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 |