summaryrefslogtreecommitdiff
path: root/numpy/f2py
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/f2py
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/f2py')
-rw-r--r--numpy/f2py/diagnose.py6
1 files changed, 3 insertions, 3 deletions
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: