mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.10] Ensure the str member of the tokenizer is always initialised (GH-29681). (GH-29683)
(cherry picked from commit 4f006a789a)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
9841ac2da5
commit
07cf66fd03
4 changed files with 428 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ struct tok_state {
|
|||
PyObject *decoding_readline; /* open(...).readline */
|
||||
PyObject *decoding_buffer;
|
||||
const char* enc; /* Encoding for the current str. */
|
||||
char* str;
|
||||
char* str; /* Source string being tokenized (if tokenizing from a string)*/
|
||||
char* input; /* Tokenizer's newline translated copy of the string. */
|
||||
|
||||
int type_comments; /* Whether to look for type comments */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue