[Python-checkins] cpython: Skip unused value in tokenizer code

christian.heimes python-checkins at python.org
Thu Sep 8 18:12:36 EDT 2016


https://hg.python.org/cpython/rev/08c08a3f5ac1
changeset:   103367:08c08a3f5ac1
user:        Christian Heimes <christian at python.org>
date:        Fri Sep 09 00:09:45 2016 +0200
summary:
  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

files:
  Parser/tokenizer.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1737,7 +1737,7 @@
             else {
                 end_quote_size = 0;
                 if (c == '\\')
-                    c = tok_nextc(tok);  /* skip escaped char */
+                    tok_nextc(tok);  /* skip escaped char */
             }
         }
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list