Skip to content

Commit

Permalink
Merge branch 'main' into pythongh-119306
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenetriguba authored May 21, 2024
2 parents fb00791 + 73f4a58 commit fcba959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,9 @@ def register_readline():
pass

def write_history():
from _pyrepl.__main__ import CAN_USE_PYREPL
try:
if os.getenv("PYTHON_BASIC_REPL"):
if os.getenv("PYTHON_BASIC_REPL") or not CAN_USE_PYREPL:
readline.write_history_file(history)
else:
_pyrepl.readline.write_history_file(history)
Expand Down

0 comments on commit fcba959

Please sign in to comment.