]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
get_completer() takes no args
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Mar 2003 15:19:49 +0000 (15:19 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Mar 2003 15:19:49 +0000 (15:19 +0000)
Modules/readline.c

index 4d88d13b69d9b6d33fe63a3350b00bde70fac339..c09330d997127189de1f2e66554729a25ccc3f23 100644 (file)
@@ -333,7 +333,7 @@ It should return the next possible completion starting with 'text'.\
 ";
 
 static PyObject *
-get_completer(PyObject *self, PyObject *args)
+get_completer(PyObject *self, PyObject *noargs)
 {
        if (completer == NULL) {
                Py_INCREF(Py_None);
@@ -402,7 +402,7 @@ static struct PyMethodDef readline_methods[] =
        {"get_history_length", get_history_length, 
         METH_VARARGS, get_history_length_doc},
        {"set_completer", set_completer, METH_VARARGS, doc_set_completer},
-       {"get_completer", get_completer, METH_VARARGS, doc_get_completer},
+       {"get_completer", get_completer, METH_NOARGS, doc_get_completer},
        {"get_begidx", get_begidx, METH_OLDARGS, doc_get_begidx},
        {"get_endidx", get_endidx, METH_OLDARGS, doc_get_endidx},