Skip to content

Commit 12eb2ab

Browse files
committed
Issue python#15699: Merge readline fixup from 3.5
2 parents b32a7ed + f6e9f47 commit 12eb2ab

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

‎Modules/readline.c‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ on_completion_display_matches_hook(char **matches,
7878
static char *completer_word_break_characters;
7979

8080
typedef struct {
81+
/* Specify hook functions in Python */
8182
PyObject *completion_display_matches_hook;
8283
PyObject *startup_hook;
8384
PyObject *pre_input_hook;
84-
PyObject *completer;
85+
86+
PyObject *completer; /* Specify a word completer in Python */
8587
PyObject *begidx;
8688
PyObject *endidx;
8789
} readlinestate;
@@ -334,13 +336,6 @@ set_hook(const char *funcname, PyObject **hook_var, PyObject *args)
334336
}
335337

336338

337-
/* Exported functions to specify hook functions in Python */
338-
339-
340-
#ifdef HAVE_RL_PRE_INPUT_HOOK
341-
342-
#endif
343-
344339
static PyObject *
345340
set_completion_display_matches_hook(PyObject *self, PyObject *args)
346341
{
@@ -401,14 +396,6 @@ characters.");
401396
#endif
402397

403398

404-
/* Exported function to specify a word completer in Python */
405-
406-
407-
408-
409-
410-
411-
412399
/* Get the completion type for the scope of the tab-completion */
413400
static PyObject *
414401
get_completion_type(PyObject *self, PyObject *noarg)

0 commit comments

Comments
 (0)