diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-28 10:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 10:04:53 +0200 |
commit | 1c9532bb8857551d163517bf0028441c7cd544c8 (patch) | |
tree | 328461db08a78ff0db667e7135dd9d8e2f2e1ff5 /numpy/distutils/fcompiler | |
parent | 7fe3ffadbbe9114cbc561c27d7a6d285f84fc129 (diff) | |
parent | 080cf82ebc5858ec47eff0d49bdf48b74f955274 (diff) | |
download | numpy-1c9532bb8857551d163517bf0028441c7cd544c8.tar.gz |
Merge pull request #22493 from mwtoews/maint-open
MAINT: remove redundant open() modes and io.open() alias
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/ibm.py | 2 |
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) |