diff options
| author | Eric Wieser <wieser.eric@gmail.com> | 2020-01-05 21:16:11 +0000 |
|---|---|---|
| committer | Eric Wieser <wieser.eric@gmail.com> | 2020-01-05 21:22:53 +0000 |
| commit | da0497fdf35a7bf851f3625b0df07cde950f5f49 (patch) | |
| tree | 2bfd303e0c20edbbc2b0523b852f6f9710e4dd92 /numpy/distutils/fcompiler/gnu.py | |
| parent | 6253ff78be7f21898178799758717bfe59368b94 (diff) | |
| download | numpy-da0497fdf35a7bf851f3625b0df07cde950f5f49.tar.gz | |
MAINT: cleanup use of sys.exc_info
This code originates from python 2.6, before there was an `as` clause in `except`.
This removes all callers of `numpy.distutils.compat.get_exception`.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
| -rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index 965c67041..1c71dd2bd 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -12,7 +12,6 @@ import subprocess from subprocess import Popen, PIPE, STDOUT from numpy.distutils.exec_command import filepath_from_subprocess_output from numpy.distutils.fcompiler import FCompiler -from numpy.distutils.compat import get_exception from numpy.distutils.system_info import system_info compilers = ['GnuFCompiler', 'Gnu95FCompiler'] @@ -560,5 +559,5 @@ if __name__ == '__main__': print(customized_fcompiler('gnu').get_version()) try: print(customized_fcompiler('g95').get_version()) - except Exception: - print(get_exception()) + except Exception as e: + print(e) |
