Couple of updates regarding readline capabilities

This commit is contained in:
Miroslav Stampar
2019-02-05 16:58:18 +01:00
parent f9ee0f4c0a
commit 4b00924826
6 changed files with 55 additions and 43 deletions

View File

@@ -56,9 +56,7 @@ if PLATFORM == 'mac' and _readline:
# http://mail.python.org/pipermail/python-dev/2003-August/037845.html
# has the original discussion.
if _readline:
try:
_readline.clear_history()
except AttributeError:
if not hasattr(_readline, "clear_history"):
def clear_history():
pass