mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-45738: Fix computation of error location for invalid continuation (GH-29550)
characters in the parser
(cherry picked from commit 25835c518a)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
28326ac5f8
commit
bf26a6da7a
4 changed files with 14 additions and 12 deletions
|
|
@ -1969,7 +1969,6 @@ tok_get(struct tok_state *tok, const char **p_start, const char **p_end)
|
|||
c = tok_nextc(tok);
|
||||
if (c != '\n') {
|
||||
tok->done = E_LINECONT;
|
||||
tok->cur = tok->inp;
|
||||
return ERRORTOKEN;
|
||||
}
|
||||
c = tok_nextc(tok);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue