From bdc95ea122e7e52e5ab4fbdd11abe03f6e272993 2013-06-29 20:41:16 From: Thomas Kluyver Date: 2013-06-29 20:41:16 Subject: [PATCH] Drop patch for compatibility with pyreadline 1.5 Closes gh-1307 --- diff --git a/IPython/utils/rlineimpl.py b/IPython/utils/rlineimpl.py index 4b9f9ca..568b460 100644 --- a/IPython/utils/rlineimpl.py +++ b/IPython/utils/rlineimpl.py @@ -56,18 +56,6 @@ if sys.platform == 'darwin': # cleanup dirty trick vars del dynload_idx, lib_dynload -if have_readline and hasattr(_rl, 'rlmain'): - # patch add_history to allow for strings in pyreadline <= 1.5: - # fix copied from pyreadline 1.6 - import pyreadline - if pyreadline.release.version <= '1.5': - def add_history(line): - """add a line to the history buffer.""" - from pyreadline import lineobj - if not isinstance(line, lineobj.TextLine): - line = lineobj.TextLine(line) - return _rl.add_history(line) - if (sys.platform == 'win32' or sys.platform == 'cli') and have_readline: try: _outputfile=_rl.GetOutputFile()