mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
correct porting error with raise #7161
This commit is contained in:
parent
3a22b476a3
commit
9ab0f5a425
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ def _maybe_compile(compiler, source, filename, symbol):
|
||||||
if code:
|
if code:
|
||||||
return code
|
return code
|
||||||
if not code1 and repr(err1) == repr(err2):
|
if not code1 and repr(err1) == repr(err2):
|
||||||
raise SyntaxError(err1)
|
raise err1
|
||||||
|
|
||||||
def _compile(source, filename, symbol):
|
def _compile(source, filename, symbol):
|
||||||
return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)
|
return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue