diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-13 17:30:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 17:30:03 -0800 |
commit | bf26a6da7aaedb526c9eb1cb56b0e46d1c10384c (patch) | |
tree | ee5f31f18e34e46325e63d5e6ba4f501aeb3a11d /Parser/tokenizer.c | |
parent | 28326ac5f87ede140268376f0c87c3b2aba62906 (diff) | |
download | cpython-git-bf26a6da7aaedb526c9eb1cb56b0e46d1c10384c.tar.gz |
bpo-45738: Fix computation of error location for invalid continuation (GH-29550)
characters in the parser
(cherry picked from commit 25835c518aa7446f3680b62c1fb43827e0f190d9)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
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 519300f373..76a22dab65 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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); |