summaryrefslogtreecommitdiffstats
path: root/Lib/codeop.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-18 00:34:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-10-18 00:34:08 (GMT)
commit1580ece5f17f251b9fd7590c03bc7fd205b7dcfe (patch)
tree20d76e31a48e0ecc9d546b02c1acdb35fc59e313 /Lib/codeop.py
parentb4244b221c9055d35a125f5772b92f1cea0aabf1 (diff)
downloadcpython-1580ece5f17f251b9fd7590c03bc7fd205b7dcfe.zip
cpython-1580ece5f17f251b9fd7590c03bc7fd205b7dcfe.tar.gz
cpython-1580ece5f17f251b9fd7590c03bc7fd205b7dcfe.tar.bz2
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 ........
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 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)