Browse files

Follow-up to 387dcd6, `_rl.__doc__` is `None` with pyreadline

  • Loading branch information...
cboos committed Oct 29, 2011
1 parent c3da53b commit 0e0a99483e531be602311810c761dc506420e401
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/utils/
@@ -86,7 +86,7 @@ def add_history(line):
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

0 comments on commit 0e0a994

Please sign in to comment.