Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf028451

Browse files
[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 decideif _pyrepl.write_history_file() can be used.(cherry picked from commit73f4a58)Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent49ad4d0 commitf028451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Lib/site.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,9 @@ def register_readline():
523523
pass
524524

525525
defwrite_history():
526+
from_pyrepl.__main__importCAN_USE_PYREPL
526527
try:
527-
ifos.getenv("PYTHON_BASIC_REPL"):
528+
ifos.getenv("PYTHON_BASIC_REPL")ornotCAN_USE_PYREPL:
528529
readline.write_history_file(history)
529530
else:
530531
_pyrepl.readline.write_history_file(history)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp