diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2020-01-05 17:27:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-05 17:27:25 -0700 |
| commit | ba81c4200f289b393755d954f7450804ec8f897a (patch) | |
| tree | 9c5105f9d1974b355fd55a3adab09d83e2846490 /numpy/distutils/fcompiler/gnu.py | |
| parent | b5739e8a81c71174b75cf4c8f9de4eccaa7eca2c (diff) | |
| parent | da0497fdf35a7bf851f3625b0df07cde950f5f49 (diff) | |
| download | numpy-ba81c4200f289b393755d954f7450804ec8f897a.tar.gz | |
Merge pull request #15248 from eric-wieser/avoid-exc_info
MAINT: cleanup use of sys.exc_info
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 0a68fee72..4fc9f33ff 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -10,7 +10,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'] @@ -558,5 +557,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) |
