diff options
author | Christian Heimes <christian@python.org> | 2016-09-08 22:09:45 (GMT) |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2016-09-08 22:09:45 (GMT) |
commit | c6cc23d0b968677030f45234909eeecc21198c77 (patch) | |
tree | 829f0203328d12d9ed6fe8f43ca7d8bb7d5e2ab9 /Parser/tokenizer.c | |
parent | 275270772e6b733beb5bf0e24f6d33663975cc63 (diff) | |
download | cpython-c6cc23d0b968677030f45234909eeecc21198c77.zip cpython-c6cc23d0b968677030f45234909eeecc21198c77.tar.gz cpython-c6cc23d0b968677030f45234909eeecc21198c77.tar.bz2 |
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
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 90a8270..d1e5d35 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1737,7 +1737,7 @@ tok_get(struct tok_state *tok, char **p_start, char **p_end) else { end_quote_size = 0; if (c == '\\') - c = tok_nextc(tok); /* skip escaped char */ + tok_nextc(tok); /* skip escaped char */ } } |