[pypy-commit] cffi default: Move these two lines outside the "with"

arigo noreply at buildbot.pypy.org
Mon Jun 1 18:28:30 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2153:13a8f80fab66
Date: 2015-06-01 18:29 +0200
http://bitbucket.org/cffi/cffi/changeset/13a8f80fab66/

Log:	Move these two lines outside the "with"

diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -19,8 +19,8 @@
     # we are generating.
     with open(filename) as f:
         src = f.read()
-        src += '\n'      # Python 2.6 compatibility
-        code = compile(src, filename, 'exec')
+    src += '\n'      # Python 2.6 compatibility
+    code = compile(src, filename, 'exec')
     exec(code, glob, glob)
 
 


More information about the pypy-commit mailing list