cpython: 687dd81cee3b (original) (raw)

Mercurial > cpython

changeset 85871:687dd81cee3b

Issue #5845: In site.py, only load readline history from ~/.python_history if no history has been read already. This avoids double writes to the history file at shutdown. [#5845]

Antoine Pitrou solipsis@pitrou.net
date Sun, 29 Sep 2013 22🔞38 +0200
parents 280d403434c4
children 067159ee704f
files Lib/site.py Misc/NEWS
diffstat 2 files changed, 17 insertions(+), 6 deletions(-)[+] [-] Lib/site.py 19 Misc/NEWS 4

line wrap: on

line diff

--- a/Lib/site.py +++ b/Lib/site.py @@ -405,12 +405,19 @@ def enablerlcompleter(): # want to ignore the exception. pass

sys.interactivehook = register_readline

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -15,6 +15,10 @@ Core and Builtins Library ------- +- Issue #5845: In site.py, only load readline history from ~/.python_history