summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-03-01 05:24:19 -0800
committernjsmith <njs@pobox.com>2013-03-01 05:24:19 -0800
commitd1b5ea9307f2d17a13d4497d8e9516587964ccd7 (patch)
tree704bb6e0e89b115d0d628a7a683c97d27596d123 /numpy
parent48df79673f81a8421421233e26f663f260bcebfd (diff)
parent9da706c1fb01a324e4a42760fbceeef78af3e2bc (diff)
downloadnumpy-d1b5ea9307f2d17a13d4497d8e9516587964ccd7.tar.gz
Merge pull request #3097 from charris/2to3-sys_exc
2to3: Apply `sys_exc` fixes. Closes #3086.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/cpuinfo.py2
-rw-r--r--numpy/f2py/diagnose.py6
2 files changed, 4 insertions, 4 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
diff --git a/numpy/f2py/diagnose.py b/numpy/f2py/diagnose.py
index e45f9950e..1a4f6adf7 100644
--- a/numpy/f2py/diagnose.py
+++ b/numpy/f2py/diagnose.py
@@ -29,14 +29,14 @@ def run():
import numpy
has_newnumpy = 1
except ImportError:
- print 'Failed to import new numpy:', sys.exc_value
+ print 'Failed to import new numpy:', sys.exc_info()[1]
has_newnumpy = 0
try:
from numpy.f2py import f2py2e
has_f2py2e = 1
except ImportError:
- print 'Failed to import f2py2e:',sys.exc_value
+ print 'Failed to import f2py2e:',sys.exc_info()[1]
has_f2py2e = 0
try:
@@ -47,7 +47,7 @@ def run():
import numpy_distutils
has_numpy_distutils = 1
except ImportError:
- print 'Failed to import numpy_distutils:',sys.exc_value
+ print 'Failed to import numpy_distutils:',sys.exc_info()[1]
has_numpy_distutils = 0
if has_newnumpy: