summaryrefslogtreecommitdiff
path: root/Lib/codeop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/codeop.py')
-rw-r--r--Lib/codeop.py2
1 files changed, 1 insertions, 1 deletions
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)