projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
748f40d
)
Issue #20411: Use readline.get_current_history_length to check for the presence of...
author
Jason R. Coombs
<jaraco@jaraco.com>
Tue, 28 Jan 2014 14:06:58 +0000
(09:06 -0500)
committer
Jason R. Coombs
<jaraco@jaraco.com>
Tue, 28 Jan 2014 14:06:58 +0000
(09:06 -0500)
Lib/site.py
patch
|
blob
|
history
diff --git
a/Lib/site.py
b/Lib/site.py
index b0d8268f8165435398d71cee018e14795b55c53b..4fb1058a1e882ea8d7d3ca399f8c8042070e05cc 100644
(file)
--- a/
Lib/site.py
+++ b/
Lib/site.py
@@
-409,7
+409,7
@@
def enablerlcompleter():
# want to ignore the exception.
pass
- if readline.get_
history_item(1) is None
:
+ if readline.get_
current_history_length() == 0
:
# If no history was loaded, default to .python_history.
# The guard is necessary to avoid doubling history size at
# each interpreter exit when readline was already configured