From 26e1d7f4739e39ee16f73685bbcefdac03ae4866 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Thu, 3 Dec 2009 15:54:11 +0000 Subject: Make top numpy __init__ importable from python3. --- numpy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy') 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.""" -- cgit v1.2.1