From 0e0a99483e531be602311810c761dc506420e401 2011-10-29 08:46:13 From: Christian Boos Date: 2011-10-29 08:46:13 Subject: [PATCH] Follow-up to 387dcd6a, `_rl.__doc__` is `None` with pyreadline --- diff --git a/IPython/utils/rlineimpl.py b/IPython/utils/rlineimpl.py index d780fe3..c585ea9 100644 --- a/IPython/utils/rlineimpl.py +++ b/IPython/utils/rlineimpl.py @@ -86,7 +86,7 @@ uses_libedit = False if have_readline: # Official Python docs state that 'libedit' is in the docstring for libedit readline: - uses_libedit = 'libedit' in _rl.__doc__ + uses_libedit = _rl.__doc__ and 'libedit' in _rl.__doc__ # Note that many non-System Pythons also do not use proper readline, # but do not report libedit at all, nor are they linked dynamically against libedit. # known culprits of this include: EPD, Fink