Ignore encoding declarations inside strings. Fixes #603509.

This commit is contained in:
Martin v. Löwis 2002-09-03 11:52:44 +00:00
parent 65b7282ef7
commit f62a89b1e0
3 changed files with 18 additions and 2 deletions

View file

@ -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;