]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119269) (#119308)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 May 2024 13:46:11 +0000 (15:46 +0200)
committerGitHub <noreply@github.com>
Tue, 21 May 2024 13:46:11 +0000 (13:46 +0000)
commitf028451d95d5a8bda0ca1726b05c87a2caace025
treea3ca2bedd779c6553ea9f2e7d16bd36eaf8c021d
parent49ad4d077ff0297ca7e04ac20102d4068351cae7
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119269) (#119308)

gh-119102: Fix REPL for dumb terminal (GH-119269)

Use CAN_USE_PYREPL of _pyrepl.__main__ in the site module to decide
if _pyrepl.write_history_file() can be used.
(cherry picked from commit 73f4a58d36b65ec650e8f00b2affc4a4d3195f0c)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/site.py