]> granicus.if.org Git - python/commitdiff
correct porting error with raise #7161
authorBenjamin Peterson <benjamin@python.org>
Sun, 18 Oct 2009 00:32:49 +0000 (00:32 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 18 Oct 2009 00:32:49 +0000 (00:32 +0000)
Lib/codeop.py

index 780c86203d07901e962824d42ee3791efc048658..fb759da42ad1a2b79a30f9d5df5f63b3014fa1a4 100644 (file)
@@ -96,7 +96,7 @@ def _maybe_compile(compiler, source, filename, symbol):
     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)