mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
Patch #802188: better parser error message for non-EOL following line cont.
This commit is contained in:
parent
a4dac4094a
commit
4bf108d74f
4 changed files with 8 additions and 1 deletions
|
@ -1484,6 +1484,9 @@ err_input(perrdetail *err)
|
|||
msg = "unknown decode error";
|
||||
break;
|
||||
}
|
||||
case E_LINECONT:
|
||||
msg = "unexpected character after line continuation character";
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "error=%d\n", err->error);
|
||||
msg = "unknown parsing error";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue