Issue 22940: fixes to editline support

This commit is contained in:
Ned Deily 2014-11-26 13:02:33 -08:00
parent 3663b58664
commit 8007cbc4d5
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class TestHistoryManipulation (unittest.TestCase):
self.assertEqual(readline.get_current_history_length(), 1)
@unittest.skipUnless(hasattr(readline, "append_history"),
@unittest.skipUnless(hasattr(readline, "append_history_file"),
"append_history not available")
def test_write_read_append(self):
hfile = tempfile.NamedTemporaryFile(delete=False)

View File

@ -786,8 +786,8 @@ static struct PyMethodDef readline_methods[] =
METH_VARARGS, doc_write_history_file},
#ifdef HAVE_RL_APPEND_HISTORY
{"append_history_file", append_history_file,
#endif
METH_VARARGS, doc_append_history_file},
#endif
{"get_history_item", get_history_item,
METH_VARARGS, doc_get_history_item},
{"get_current_history_length", (PyCFunction)get_current_history_length,