Skip to content

Commit dd4da6c

Browse files
committed
Use with
1 parent 81fc5a1 commit dd4da6c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,8 @@ def configure_ctypes(self, ext):
17321732
return False
17331733

17341734
fficonfig = {}
1735-
exec open(ffi_configfile) in fficonfig
1735+
with open(ffi_configfile) as f:
1736+
exec f in fficonfig
17361737

17371738
# Add .S (preprocessed assembly) to C compiler source extensions.
17381739
self.compiler_obj.src_extensions.append('.S')

0 commit comments

Comments
 (0)