Permalink
Browse files

ENH: a couple more updated 'raise' statements

  • Loading branch information...
1 parent 9af9d6d commit ec2e32267cdb1f164f38f59ec34f502081706822 warren.weckesser committed Nov 20, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 scipy/__init__.py
  2. +1 −1 tools/osx/install_and_test.py
View
@@ -77,7 +77,7 @@
from numpy import show_config as show_numpy_config
if show_numpy_config is None:
- raise ImportError,"Cannot import scipy when running from numpy source directory."
+ raise ImportError("Cannot import scipy when running from numpy source directory.")
from numpy import __version__ as __numpy_version__
# Import numpy symbols to scipy name space
@@ -25,7 +25,7 @@ def color_print(msg):
pkg = fn
break
if pkg is None:
- raise IOError, 'Package is not found in directory %s' % distdir
+ raise IOError('Package is not found in directory %s' % distdir)
pkgpath = os.path.abspath(os.path.join(SRC_DIR, DIST_DIR, pkg))
color_print('Installing package: %s' % pkgpath)

0 comments on commit ec2e322

Please sign in to comment.