summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-12-03 15:54:11 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-12-03 15:54:11 +0000
commit26e1d7f4739e39ee16f73685bbcefdac03ae4866 (patch)
treece683380243be7cc823bd8e8e4c6fbfc77f10e02 /numpy/__init__.py
parentccdfafcf58fdf3dc1d95acc090445e56267bd4ab (diff)
downloadnumpy-26e1d7f4739e39ee16f73685bbcefdac03ae4866.tar.gz
Make top numpy __init__ importable from python3.
Diffstat (limited to 'numpy/__init__.py')
-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."""