mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file
descriptor.
This commit is contained in:
parent
383c32dd38
commit
22a351aabf
3 changed files with 13 additions and 7 deletions
|
@ -53,7 +53,7 @@ struct tok_state {
|
|||
int cont_line; /* whether we are in a continuation line. */
|
||||
const char* line_start; /* pointer to start of current line */
|
||||
#ifndef PGEN
|
||||
PyObject *decoding_readline; /* codecs.open(...).readline */
|
||||
PyObject *decoding_readline; /* open(...).readline */
|
||||
PyObject *decoding_buffer;
|
||||
#endif
|
||||
const char* enc; /* Encoding for the current str. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue