diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-09-02 10:28:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-02 10:28:28 -0600 |
| commit | 95d254027f2fb526fe4c745f330e6fa448a7e4db (patch) | |
| tree | dceb9f90936601187aa6450139cdf26912b4db3b /numpy/distutils/exec_command.py | |
| parent | 47368730049ac394c50d2b73fa51e671c1320984 (diff) | |
| parent | 7ad8ea7b11e3544b133d8b397dd3bbe4833d3308 (diff) | |
| download | numpy-95d254027f2fb526fe4c745f330e6fa448a7e4db.tar.gz | |
Merge pull request #19815 from mwtoews/maint-ioerror
MAINT: revise OSError aliases (IOError, EnvironmentError)
Diffstat (limited to 'numpy/distutils/exec_command.py')
| -rw-r--r-- | numpy/distutils/exec_command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index fb10d2470..79998cf5d 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -284,7 +284,7 @@ def _exec_command(command, use_shell=None, use_tee = None, **env): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=False) - except EnvironmentError: + except OSError: # Return 127, as os.spawn*() and /bin/sh do return 127, '' |
