diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-10-18 00:32:49 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-10-18 00:32:49 (GMT) |
commit | 9ab0f5a4254804cc431c552f7244f49260b44e6a (patch) | |
tree | 239f19e9882ea31c082baee1cd188ed8a289c1e0 /Lib/codeop.py | |
parent | 3a22b476a39f648b845111699c4724963f5379a9 (diff) | |
download | cpython-9ab0f5a4254804cc431c552f7244f49260b44e6a.zip cpython-9ab0f5a4254804cc431c552f7244f49260b44e6a.tar.gz cpython-9ab0f5a4254804cc431c552f7244f49260b44e6a.tar.bz2 |
correct porting error with raise #7161
Diffstat (limited to 'Lib/codeop.py')
-rw-r--r-- | Lib/codeop.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |