Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b365332 commit 73f4a58Copy full SHA for 73f4a58
1 file changed
Lib/site.py
@@ -523,8 +523,9 @@ def register_readline():
523
pass
524
525
def write_history():
526
+ from _pyrepl.__main__ import CAN_USE_PYREPL
527
try:
- if os.getenv("PYTHON_BASIC_REPL"):
528
+ if os.getenv("PYTHON_BASIC_REPL") or not CAN_USE_PYREPL:
529
readline.write_history_file(history)
530
else:
531
_pyrepl.readline.write_history_file(history)
0 commit comments