mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
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 ........
This commit is contained in:
parent
b4244b221c
commit
1580ece5f1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue