mirror of https://github.com/python/cpython
gh-121245: Amend d611c4c8e9
(correct import) (#121255)
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
parent
7435f053b4
commit
7a807c3efa
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue