diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 14:01:29 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 17:14:34 +0200 |
commit | b60da71313c1d9869d94e31e39391b41e5993d56 (patch) | |
tree | c64c8c5dece132e829418a21a4e7bb8821639026 /numpy/linalg/lapack_lite | |
parent | 1c24cae6875ada3787e7b260b60a2711b27684d6 (diff) | |
download | numpy-b60da71313c1d9869d94e31e39391b41e5993d56.tar.gz |
REV: 7949ba5
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 0a3b67f5b..0929fc66c 100755 --- a/numpy/linalg/lapack_lite/make_lite.py +++ b/numpy/linalg/lapack_lite/make_lite.py @@ -276,8 +276,8 @@ def scrubF2CSource(c_file): def ensure_executable(name): try: which(name) - except Exception as ex: - raise SystemExit(name + ' not found') from ex + except Exception: + raise SystemExit(name + ' not found') def create_name_header(output_dir): routine_re = re.compile(r'^ (subroutine|.* function)\s+(\w+)\(.*$', |