summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-09-02 21:32:21 +1200
committerMike Taves <mwtoews@gmail.com>2021-09-02 22:56:43 +1200
commit7ad8ea7b11e3544b133d8b397dd3bbe4833d3308 (patch)
tree8726a71692b20b079cec53e76f5c1fb33c806d7b /numpy/distutils/fcompiler
parent9fca8f0c1a3f16f8f62ae574ec1a79b5b588214e (diff)
downloadnumpy-7ad8ea7b11e3544b133d8b397dd3bbe4833d3308.tar.gz
MAINT: revise OSError aliases (IOError, EnvironmentError)
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r--numpy/distutils/fcompiler/compaq.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index 351a43dd7..01314c136 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -84,9 +84,9 @@ class CompaqVisualFCompiler(FCompiler):
print('Ignoring "%s" (I think it is msvccompiler.py bug)' % (e))
else:
raise
- except IOError as e:
+ except OSError as e:
if not "vcvarsall.bat" in str(e):
- print("Unexpected IOError in", __file__)
+ print("Unexpected OSError in", __file__)
raise
except ValueError as e:
if not "'path'" in str(e):