[Scipy-svn] r6931 - in trunk/scipy/special: amos utils

scipy-svn@scip... scipy-svn@scip...
Sat Nov 20 10:29:25 CST 2010


Author: warren.weckesser
Date: 2010-11-20 10:29:24 -0600 (Sat, 20 Nov 2010)
New Revision: 6931

Modified:
   trunk/scipy/special/amos/setup.py
   trunk/scipy/special/utils/makenpz.py
Log:
ENH: special: update 'raise' statements

Modified: trunk/scipy/special/amos/setup.py
===================================================================
--- trunk/scipy/special/amos/setup.py	2010-11-20 16:25:57 UTC (rev 6930)
+++ trunk/scipy/special/amos/setup.py	2010-11-20 16:29:24 UTC (rev 6931)
@@ -23,7 +23,7 @@
         print cmd
         failure = os.system(cmd)
         if failure:
-            raise ValueError, 'failure during compile'
+            raise ValueError('failure during compile')
     def object_to_library(self,library_name,object_files):
         objects = " ".join(object_files)
         cmd = 'ar -cr lib%s.a %s' % (library_name,objects)

Modified: trunk/scipy/special/utils/makenpz.py
===================================================================
--- trunk/scipy/special/utils/makenpz.py	2010-11-20 16:25:57 UTC (rev 6930)
+++ trunk/scipy/special/utils/makenpz.py	2010-11-20 16:29:24 UTC (rev 6931)
@@ -52,7 +52,7 @@
     for i, val in enumerate(args):
         key = 'arr_%d' % i
         if key in namedict.keys():
-            raise ValueError, "Cannot use un-named variables and keyword %s" % key
+            raise ValueError("Cannot use un-named variables and keyword %s" % key)
         namedict[key] = val
 
     zip = zipfile.ZipFile(file, mode="w", compression=zipfile.ZIP_DEFLATED)



More information about the Scipy-svn mailing list