diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 16:42:45 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 16:42:45 -0700 |
commit | 9da706c1fb01a324e4a42760fbceeef78af3e2bc (patch) | |
tree | 09c764e4d6cc0329829dc731b0abda865343978a /numpy/distutils/cpuinfo.py | |
parent | 0934653e151969f6912c911b5113306bd5f450f1 (diff) | |
download | numpy-9da706c1fb01a324e4a42760fbceeef78af3e2bc.tar.gz |
2to3: Apply `sys_exc` fixes. Closes #3086.
This uses sys.exc_info in place of sys.exc_value. The new function
goes back to at least 2002, so should be safe.
Diffstat (limited to 'numpy/distutils/cpuinfo.py')
-rw-r--r-- | numpy/distutils/cpuinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/cpuinfo.py b/numpy/distutils/cpuinfo.py index a9b2af108..96bf37bb3 100644 --- a/numpy/distutils/cpuinfo.py +++ b/numpy/distutils/cpuinfo.py @@ -516,7 +516,7 @@ class Win32CPUInfo(CPUInfoBase): info[-1]["Model"]=int(srch.group("MDL")) info[-1]["Stepping"]=int(srch.group("STP")) except: - print(sys.exc_value,'(ignoring)') + print(sys.exc_info()[1],'(ignoring)') self.__class__.info = info def _not_impl(self): pass |