[Python-checkins] cpython (merge 3.5 -> default): Issue #15699: Merge readline fixup from 3.5
martin.panter
python-checkins at python.org
Mon Mar 21 22:30:35 EDT 2016
https://hg.python.org/cpython/rev/5c6a5b3bb6eb
changeset: 100643:5c6a5b3bb6eb
parent: 100641:98a1c8cb882f
parent: 100642:b5279feb22f1
user: Martin Panter <vadmium+py at gmail.com>
date: Tue Mar 22 02:26:18 2016 +0000
summary:
Issue #15699: Merge readline fixup from 3.5
files:
Modules/readline.c | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/Modules/readline.c b/Modules/readline.c
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -78,10 +78,12 @@
static char *completer_word_break_characters;
typedef struct {
+ /* Specify hook functions in Python */
PyObject *completion_display_matches_hook;
PyObject *startup_hook;
PyObject *pre_input_hook;
- PyObject *completer;
+
+ PyObject *completer; /* Specify a word completer in Python */
PyObject *begidx;
PyObject *endidx;
} readlinestate;
@@ -334,13 +336,6 @@
}
-/* Exported functions to specify hook functions in Python */
-
-
-#ifdef HAVE_RL_PRE_INPUT_HOOK
-
-#endif
-
static PyObject *
set_completion_display_matches_hook(PyObject *self, PyObject *args)
{
@@ -401,14 +396,6 @@
#endif
-/* Exported function to specify a word completer in Python */
-
-
-
-
-
-
-
/* Get the completion type for the scope of the tab-completion */
static PyObject *
get_completion_type(PyObject *self, PyObject *noarg)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list