Skip to content

Commit

Permalink
pythongh-121245: Amend d611c4c (correct import) (python#121255)
Browse files Browse the repository at this point in the history
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
  • Loading branch information
2 people authored and noahbkim committed Jul 11, 2024
1 parent 7200f86 commit b8a80ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ def register_readline():

def write_history():
try:
# _pyrepl.__main__ is executed as the __main__ module
from __main__ import CAN_USE_PYREPL
from _pyrepl.main import CAN_USE_PYREPL
except ImportError:
CAN_USE_PYREPL = False

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a bug in the handling of the command history of the new :term:`REPL` that caused
the history file to be wiped at REPL exit.

0 comments on commit b8a80ab

Please sign in to comment.