[Python-checkins] r75472 - python/branches/py3k/Lib/codeop.py

benjamin.peterson python-checkins at python.org
Sun Oct 18 02:32:49 CEST 2009


Author: benjamin.peterson
Date: Sun Oct 18 02:32:49 2009
New Revision: 75472

Log:
correct porting error with raise #7161

Modified:
   python/branches/py3k/Lib/codeop.py

Modified: python/branches/py3k/Lib/codeop.py
==============================================================================
--- python/branches/py3k/Lib/codeop.py	(original)
+++ python/branches/py3k/Lib/codeop.py	Sun Oct 18 02:32:49 2009
@@ -96,7 +96,7 @@
     if code:
         return code
     if not code1 and repr(err1) == repr(err2):
-        raise SyntaxError(err1)
+        raise err1
 
 def _compile(source, filename, symbol):
     return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)


More information about the Python-checkins mailing list