diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-09-03 11:52:44 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-09-03 11:52:44 (GMT) |
commit | f62a89b1e09d84fbd60e0356b87430a6ff1e352d (patch) | |
tree | 005f3cbd5a4510a448022832dbdb8c0490de8fab /Parser/tokenizer.h | |
parent | 65b7282ef715ef0e9b8f9e8581715d2b4746f960 (diff) | |
download | cpython-f62a89b1e09d84fbd60e0356b87430a6ff1e352d.zip cpython-f62a89b1e09d84fbd60e0356b87430a6ff1e352d.tar.gz cpython-f62a89b1e09d84fbd60e0356b87430a6ff1e352d.tar.bz2 |
Ignore encoding declarations inside strings. Fixes #603509.
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index f3bac74..b3d456a 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -45,6 +45,7 @@ struct tok_state { int read_coding_spec; /* whether 'coding:...' has been read */ int issued_encoding_warning; /* whether non-ASCII warning was issued */ char *encoding; + int cont_line; /* whether we are in a continuation line. */ #ifndef PGEN PyObject *decoding_readline; /* codecs.open(...).readline */ PyObject *decoding_buffer; |