[Python-checkins] r77467 - python/trunk/setup.py
antoine.pitrou
python-checkins at python.org
Wed Jan 13 12:57:43 CET 2010
Author: antoine.pitrou
Date: Wed Jan 13 12:57:42 2010
New Revision: 77467
Log:
Use `with`
Modified:
python/trunk/setup.py
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py (original)
+++ python/trunk/setup.py Wed Jan 13 12:57:42 2010
@@ -1732,7 +1732,8 @@
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')
More information about the Python-checkins
mailing list