diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-11-14 01:06:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 01:06:41 (GMT) |
commit | 25835c518aa7446f3680b62c1fb43827e0f190d9 (patch) | |
tree | 42aaedbf01d1b90eeb5987c7920d52db9bed2235 /Parser/tokenizer.c | |
parent | f8da00ef04fdadf7cd9821e8ec4b317ecf3ed663 (diff) | |
download | cpython-25835c518aa7446f3680b62c1fb43827e0f190d9.zip cpython-25835c518aa7446f3680b62c1fb43827e0f190d9.tar.gz cpython-25835c518aa7446f3680b62c1fb43827e0f190d9.tar.bz2 |
bpo-45738: Fix computation of error location for invalid continuation (GH-29550)
characters in the parser
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 8a19458..f281c42 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1970,7 +1970,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); |