[Python-checkins] cpython: Issue 22940: fixes to editline support
ned.deily
python-checkins at python.org
Wed Nov 26 22:03:13 CET 2014
https://hg.python.org/cpython/rev/c8bcede1b37a
changeset: 93608:c8bcede1b37a
user: Ned Deily <nad at acm.org>
date: Wed Nov 26 13:02:33 2014 -0800
summary:
Issue 22940: fixes to editline support
files:
Lib/test/test_readline.py | 2 +-
Modules/readline.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py
--- a/Lib/test/test_readline.py
+++ b/Lib/test/test_readline.py
@@ -43,7 +43,7 @@
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)
diff --git a/Modules/readline.c b/Modules/readline.c
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -786,8 +786,8 @@
METH_VARARGS, doc_write_history_file},
#ifdef HAVE_RL_APPEND_HISTORY
{"append_history_file", append_history_file,
+ METH_VARARGS, doc_append_history_file},
#endif
- METH_VARARGS, doc_append_history_file},
{"get_history_item", get_history_item,
METH_VARARGS, doc_get_history_item},
{"get_current_history_length", (PyCFunction)get_current_history_length,
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list