diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2024-05-07 16:01:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 16:01:49 (GMT) |
commit | a94ac566285662b214ca97d74481e07e51ccd7d9 (patch) | |
tree | 23f91530e49c539081053dbb0ba63e90a6677414 /Lib/_pyrepl/reader.py | |
parent | 26bab423fb6e08f9df23c5c8f55e3d019150c454 (diff) | |
download | cpython-a94ac566285662b214ca97d74481e07e51ccd7d9.zip cpython-a94ac566285662b214ca97d74481e07e51ccd7d9.tar.gz cpython-a94ac566285662b214ca97d74481e07e51ccd7d9.tar.bz2 |
gh-111201: Allow pasted code to contain multiple statements in the REPL (#118712)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/_pyrepl/reader.py')
-rw-r--r-- | Lib/_pyrepl/reader.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py index d84c164..d15a150 100644 --- a/Lib/_pyrepl/reader.py +++ b/Lib/_pyrepl/reader.py @@ -221,6 +221,7 @@ class Reader: dirty: bool = False finished: bool = False paste_mode: bool = False + was_paste_mode_activated: bool = False commands: dict[str, type[Command]] = field(default_factory=make_default_commands) last_command: type[Command] | None = None syntax_table: dict[str, int] = field(default_factory=make_default_syntax_table) |