From 9ab0f5a4254804cc431c552f7244f49260b44e6a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 18 Oct 2009 00:32:49 +0000 Subject: correct porting error with raise #7161 --- Lib/codeop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/codeop.py b/Lib/codeop.py index 780c862..fb759da 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) -- cgit v0.12