Author: collin.winter
Date: Wed Aug 22 23:45:02 2007
New Revision: 57292

Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/hotshot/log.py
   python/branches/py3k/Lib/hotshot/stats.py
Log:
Fix raise statements in hotshot.


Modified: python/branches/py3k/Lib/hotshot/log.py
==============================================================================
--- python/branches/py3k/Lib/hotshot/log.py     (original)
+++ python/branches/py3k/Lib/hotshot/log.py     Wed Aug 22 23:45:02 2007
@@ -70,7 +70,7 @@
         try:
             return self._filemap[fileno]
         except KeyError:
-            raise ValueError, "unknown fileno"
+            raise ValueError("unknown fileno")
 
     def get_filenames(self):
         return self._filemap.values()
@@ -80,13 +80,13 @@
         for fileno, name in self._filemap.items():
             if name == filename:
                 return fileno
-        raise ValueError, "unknown filename"
+        raise ValueError("unknown filename")
 
     def get_funcname(self, fileno, lineno):
         try:
             return self._funcmap[(fileno, lineno)]
         except KeyError:
-            raise ValueError, "unknown function location"
+            raise ValueError("unknown function location")
 
     # Iteration support:
     # This adds an optional (& ignored) parameter to next() so that the
@@ -127,7 +127,7 @@
                     self.cwd = lineno
                 self.addinfo(tdelta, lineno)
             else:
-                raise ValueError, "unknown event type"
+                raise ValueError("unknown event type")
 
     def __iter__(self):
         return self

Modified: python/branches/py3k/Lib/hotshot/stats.py
==============================================================================
--- python/branches/py3k/Lib/hotshot/stats.py   (original)
+++ python/branches/py3k/Lib/hotshot/stats.py   Wed Aug 22 23:45:02 2007
@@ -90,4 +90,4 @@
 
 
 def _brokentimer():
-    raise RuntimeError, "this timer should not be called"
+    raise RuntimeError("this timer should not be called")
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to