1 diff -Nur Python-2.2.2.orig/Modules/readline.c Python-2.2.2/Modules/readline.c
2 --- Python-2.2.2.orig/Modules/readline.c Sun Oct 6 07:43:47 2002
3 +++ Python-2.2.2/Modules/readline.c Thu Oct 17 12:10:51 2002
5 /* C function to call the Python completer. */
8 -on_completion(char *text, int state)
9 +on_completion(const char *text, int state)
12 if (completer != NULL) {
15 begidx = PyInt_FromLong((long) start);
16 endidx = PyInt_FromLong((long) end);
17 - return completion_matches(text, *on_completion);
18 + return rl_completion_matches(text, *on_completion);
21 /* Helper to initialize GNU readline properly. */