[Scipy-svn] r6936 - in trunk: scipy tools/osx

scipy-svn@scip... scipy-svn@scip...
Sat Nov 20 12:49:16 CST 2010


Author: warren.weckesser
Date: 2010-11-20 12:49:16 -0600 (Sat, 20 Nov 2010)
New Revision: 6936

Modified:
   trunk/scipy/__init__.py
   trunk/tools/osx/install_and_test.py
Log:
ENH: a couple more updated 'raise' statements

Modified: trunk/scipy/__init__.py
===================================================================
--- trunk/scipy/__init__.py	2010-11-20 18:42:42 UTC (rev 6935)
+++ trunk/scipy/__init__.py	2010-11-20 18:49:16 UTC (rev 6936)
@@ -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

Modified: trunk/tools/osx/install_and_test.py
===================================================================
--- trunk/tools/osx/install_and_test.py	2010-11-20 18:42:42 UTC (rev 6935)
+++ trunk/tools/osx/install_and_test.py	2010-11-20 18:49:16 UTC (rev 6936)
@@ -25,7 +25,7 @@
         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)



More information about the Scipy-svn mailing list