diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-16 00:18:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 00:18:07 (GMT) |
commit | 85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4 (patch) | |
tree | 3605790fbd67b3c4e4cb3cc0e6f4ea9d853de81f /Misc | |
parent | 9cc70bc22040932d257f6ba04bab812134110a74 (diff) | |
download | cpython-85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4.zip cpython-85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4.tar.gz cpython-85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4.tar.bz2 |
bpo-42819, readline: Disable bracketed paste (GH-24108) (GH-24545)
(cherry picked from commit 755f3c1521b422bc2177013d289f5439975fdc4f)
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-01-04-23-54-34.bpo-42819.4KO6wU.rst | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -1444,6 +1444,7 @@ Mark Roddy Kevin Rodgers Sean Rodman Giampaolo Rodola +Dustin Rodrigues Mauro S. M. Rodrigues Elson Rodriguez Adi Roiban diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-01-04-23-54-34.bpo-42819.4KO6wU.rst b/Misc/NEWS.d/next/Core and Builtins/2021-01-04-23-54-34.bpo-42819.4KO6wU.rst new file mode 100644 index 0000000..d067f0b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-01-04-23-54-34.bpo-42819.4KO6wU.rst @@ -0,0 +1,8 @@ +:mod:`readline`: Explicitly disable bracketed paste in the interactive +interpreter, even if it's set in the inputrc, is enabled by default (eg GNU +Readline 8.1), or a user calls ``readline.read_init_file()``. The Python REPL +has not implemented bracketed paste support. Also, bracketed mode writes the +``"\x1b[?2004h"`` escape sequence into stdout which causes test failures in +applications that don't support it. It can still be explicitly enabled by +calling ``readline.parse_and_bind("set enable-bracketed-paste on")``. Patch by +Dustin Rodrigues. |