summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 3f6695a8c..709ef373a 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -111,12 +111,12 @@ except NameError:
if __NUMPY_SETUP__:
import sys as _sys
- print >> _sys.stderr, 'Running from numpy source directory.'
+ _sys.stderr.write('Running from numpy source directory.')
del _sys
else:
try:
from numpy.__config__ import show as show_config
- except ImportError, e:
+ except ImportError:
msg = """Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python intepreter from there."""