diff Lib/codeop.py @ 43020:907a45df1295

Raise statement normalization in Lib/.
author Collin Winter <collinw@gmail.com>
date Thu, 30 Aug 2007 01:19:48 +0000
parents 6b18a095c2e7
children 49e3d4ac69c6
line wrap: on
line diff
--- a/Lib/codeop.py	Thu Aug 30 01:15:14 2007 +0000
+++ b/Lib/codeop.py	Thu Aug 30 01:19:48 2007 +0000
@@ -96,7 +96,7 @@
     if code:
         return code
     if not code1 and repr(err1) == repr(err2):
-        raise SyntaxError, err1
+        raise SyntaxError(err1)
 
 def _compile(source, filename, symbol):
     return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)