#18852: Handle readline.__doc__ being None in site.py readline activation.
Patch by Berker Peksag.
This commit is contained in:
parent
f203f2d51d
commit
4a0430166b
|
@ -388,8 +388,9 @@ def enablerlcompleter():
|
||||||
return
|
return
|
||||||
|
|
||||||
# Reading the initialization (config) file may not be enough to set a
|
# Reading the initialization (config) file may not be enough to set a
|
||||||
# completion key, so we set one first and then read the file
|
# completion key, so we set one first and then read the file.
|
||||||
if 'libedit' in getattr(readline, '__doc__', ''):
|
readline_doc = getattr(readline, '__doc__', '')
|
||||||
|
if readline_doc is not None and 'libedit' in readline_doc:
|
||||||
readline.parse_and_bind('bind ^I rl_complete')
|
readline.parse_and_bind('bind ^I rl_complete')
|
||||||
else:
|
else:
|
||||||
readline.parse_and_bind('tab: complete')
|
readline.parse_and_bind('tab: complete')
|
||||||
|
|
|
@ -56,6 +56,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #18852: Handle case of ``readline.__doc__`` being ``None`` in the new
|
||||||
|
readline activation code in ``site.py``.
|
||||||
|
|
||||||
- Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
|
- Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
|
||||||
the _sre moduel.
|
the _sre moduel.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue