summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/ibm.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2022-10-28 22:37:29 +1300
committerMike Taves <mwtoews@gmail.com>2022-10-29 14:08:54 +1300
commit080cf82ebc5858ec47eff0d49bdf48b74f955274 (patch)
treec843b284d9994186ab988c7c535a895433ae9905 /numpy/distutils/fcompiler/ibm.py
parenta8ebbd5fdb9df3d1d2885b24e783757d747dec8e (diff)
downloadnumpy-080cf82ebc5858ec47eff0d49bdf48b74f955274.tar.gz
MAINT: remove redundant open() modes and io.open() alias
Diffstat (limited to 'numpy/distutils/fcompiler/ibm.py')
-rw-r--r--numpy/distutils/fcompiler/ibm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/ibm.py b/numpy/distutils/fcompiler/ibm.py
index eff24401a..29927518c 100644
--- a/numpy/distutils/fcompiler/ibm.py
+++ b/numpy/distutils/fcompiler/ibm.py
@@ -76,7 +76,7 @@ class IBMFCompiler(FCompiler):
xlf_cfg = '/etc/opt/ibmcmp/xlf/%s/xlf.cfg' % version
fo, new_cfg = make_temp_file(suffix='_xlf.cfg')
log.info('Creating '+new_cfg)
- with open(xlf_cfg, 'r') as fi:
+ with open(xlf_cfg) as fi:
crt1_match = re.compile(r'\s*crt\s*=\s*(?P<path>.*)/crt1.o').match
for line in fi:
m = crt1_match(line)