From 132d629949ff0afad2be0dcffe5379915f6d5bc7 2014-02-24 18:53:52 From: Min RK Date: 2014-02-24 18:53:52 Subject: [PATCH] Merge pull request #5210 from minrk/pyreadline fix pyreadline import in rlineimpl --- diff --git a/IPython/utils/rlineimpl.py b/IPython/utils/rlineimpl.py index b40ea12..024fd79 100644 --- a/IPython/utils/rlineimpl.py +++ b/IPython/utils/rlineimpl.py @@ -13,8 +13,6 @@ import sys import warnings _rlmod_names = ['gnureadline', 'readline'] -if sys.platform == 'win32' or sys.platform == 'cli': - _rlmod_names.append('pyreadline') have_readline = False for _rlmod_name in _rlmod_names: @@ -29,7 +27,7 @@ for _rlmod_name in _rlmod_names: have_readline = True break -if _rlmod_name == 'pyreadline': +if sys.platform == 'win32' or sys.platform == 'cli': try: _outputfile=_rl.GetOutputFile() except AttributeError: