Permalink
Browse files

properly check 'have_pyrepl' before issuing warning

  • Loading branch information...
1 parent c92069d commit 38253eca0381fa0d0444edd09f9e68a1e18a785e @minrk committed Mar 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/utils/rlineimpl.py
@@ -76,7 +76,7 @@ def add_history(line):
" pip install pyrepl",
"*"*78]),
RuntimeWarning)
-elif have_readline and not sys.platform in ('win32', 'cli'):
+elif have_readline and not have_pyrepl and not sys.platform in ('win32', 'cli'):
warnings.warn('\n'.join(["",
"Python readline has a bug, where C-c to interrupt C-r reverse-i search",
"can leave hidden input. Make sure you use C-g to end C-r search, and not C-c.",

0 comments on commit 38253ec

Please sign in to comment.