summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/readline.py
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2025-05-02 18:22:31 (GMT)
committerGitHub <noreply@github.com>2025-05-02 18:22:31 (GMT)
commitfac41f56d4b6b858cb52b40529855cce85cdbdcc (patch)
tree70490d6d77240385c4ca99281c7e5333261e89dd /Lib/_pyrepl/readline.py
parentbfcbb28223b733b9cb88f152a059a9e1416f3467 (diff)
downloadcpython-fac41f56d4b6b858cb52b40529855cce85cdbdcc.zip
cpython-fac41f56d4b6b858cb52b40529855cce85cdbdcc.tar.gz
cpython-fac41f56d4b6b858cb52b40529855cce85cdbdcc.tar.bz2
gh-131507: Add support for syntax highlighting in PyREPL (GH-133247)
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib/_pyrepl/readline.py')
-rw-r--r--Lib/_pyrepl/readline.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/_pyrepl/readline.py b/Lib/_pyrepl/readline.py
index 9d58829..560a9db 100644
--- a/Lib/_pyrepl/readline.py
+++ b/Lib/_pyrepl/readline.py
@@ -276,10 +276,6 @@ class maybe_accept(commands.Command):
r = self.reader # type: ignore[assignment]
r.dirty = True # this is needed to hide the completion menu, if visible
- if self.reader.in_bracketed_paste:
- r.insert("\n")
- return
-
# if there are already several lines and the cursor
# is not on the last one, always insert a new \n.
text = r.get_unicode()