mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement
This commit is contained in:
parent
00c7f85298
commit
fa21bf015d
5 changed files with 52 additions and 0 deletions
|
@ -2129,6 +2129,9 @@ err_input(perrdetail *err)
|
|||
case E_IDENTIFIER:
|
||||
msg = "invalid character in identifier";
|
||||
break;
|
||||
case E_BADSINGLE:
|
||||
msg = "multiple statements found while compiling a single statement";
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "error=%d\n", err->error);
|
||||
msg = "unknown parsing error";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue