mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Skip unused value in tokenizer code
In the case of an escape character, c is never read. tok_next() is used to advance the pointer. CID 1225097
This commit is contained in:
parent
275270772e
commit
c6cc23d0b9
1 changed files with 1 additions and 1 deletions
|
|
@ -1737,7 +1737,7 @@ tok_get(struct tok_state *tok, char **p_start, char **p_end)
|
||||||
else {
|
else {
|
||||||
end_quote_size = 0;
|
end_quote_size = 0;
|
||||||
if (c == '\\')
|
if (c == '\\')
|
||||||
c = tok_nextc(tok); /* skip escaped char */
|
tok_nextc(tok); /* skip escaped char */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue