diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 13:58:09 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 17:14:34 +0200 |
commit | 1c24cae6875ada3787e7b260b60a2711b27684d6 (patch) | |
tree | a23c143a0bd06d527840681dbd8187bbae5df77b /numpy/linalg/lapack_lite | |
parent | f34b5091d855922c51254786d74c6cdd48fe9436 (diff) | |
download | numpy-1c24cae6875ada3787e7b260b60a2711b27684d6.tar.gz |
REV: b62ffc5
This is a Python 2 script, revert Python 3 exception handling.
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rwxr-xr-x | numpy/linalg/lapack_lite/make_lite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py index cc0d04653..0a3b67f5b 100755 --- a/numpy/linalg/lapack_lite/make_lite.py +++ b/numpy/linalg/lapack_lite/make_lite.py @@ -262,8 +262,8 @@ def runF2C(fortran_filename, output_dir): subprocess.check_call( ["f2c"] + F2C_ARGS + ['-d', output_dir, fortran_filename] ) - except subprocess.CalledProcessError as e: - raise F2CError from e + except subprocess.CalledProcessError: + raise F2CError def scrubF2CSource(c_file): with open(c_file) as fo: |