summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/reader.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2024-05-07 16:01:49 (GMT)
committerGitHub <noreply@github.com>2024-05-07 16:01:49 (GMT)
commita94ac566285662b214ca97d74481e07e51ccd7d9 (patch)
tree23f91530e49c539081053dbb0ba63e90a6677414 /Lib/_pyrepl/reader.py
parent26bab423fb6e08f9df23c5c8f55e3d019150c454 (diff)
downloadcpython-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.py1
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)