From: Benjamin Peterson Date: Sun, 18 Oct 2009 00:34:08 +0000 (+0000) Subject: Merged revisions 75472 via svnmerge from X-Git-Tag: v3.1.2rc1~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1580ece5f17f251b9fd7590c03bc7fd205b7dcfe;p=python Merged revisions 75472 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r75472 | benjamin.peterson | 2009-10-17 19:32:49 -0500 (Sat, 17 Oct 2009) | 1 line correct porting error with raise #7161 ........ --- diff --git a/Lib/codeop.py b/Lib/codeop.py index 780c86203d..fb759da42a 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -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)