From: Antoine Pitrou Date: Wed, 13 Jan 2010 11:57:42 +0000 (+0000) Subject: Use `with` X-Git-Tag: v2.7a3~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1379b8404a8013932299f02d0a2e081200386a49;p=thirdparty%2FPython%2Fcpython.git Use `with` --- diff --git a/setup.py b/setup.py index 3df20b6d05ef..e610dcb814a7 100644 --- a/setup.py +++ b/setup.py @@ -1732,7 +1732,8 @@ class PyBuildExt(build_ext): return False fficonfig = {} - exec open(ffi_configfile) in fficonfig + with open(ffi_configfile) as f: + exec f in fficonfig # Add .S (preprocessed assembly) to C compiler source extensions. self.compiler_obj.src_extensions.append('.S')