mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Ignore encoding declarations inside strings. Fixes #603509.
This commit is contained in:
parent
65b7282ef7
commit
f62a89b1e0
3 changed files with 18 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue