summaryrefslogtreecommitdiff
path: root/numpy/f2py/diagnose.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/diagnose.py')
-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: