summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:34:44 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:34:44 (GMT)
commita1abb728bc0d3898539ea89effa7906a50366f1a (patch)
tree91b7f25e125d8c550fa277e32023a2a39a249619 /Modules/readline.c
parent767bf49b6b3d8825cfa5c52c2e8019bd23429fcd (diff)
downloadcpython-a1abb728bc0d3898539ea89effa7906a50366f1a.zip
cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.gz
cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.bz2
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 11804c7..fe6bf22 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -324,7 +324,8 @@ Insert text into the command line.\
static struct PyMethodDef readline_methods[] =
{
{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
- {"get_line_buffer", get_line_buffer, 0, doc_get_line_buffer},
+ {"get_line_buffer", get_line_buffer,
+ METH_OLDARGS, doc_get_line_buffer},
{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
{"read_init_file", read_init_file, METH_VARARGS, doc_read_init_file},
{"read_history_file", read_history_file,
@@ -336,13 +337,13 @@ 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_begidx", get_begidx, 0, doc_get_begidx},
- {"get_endidx", get_endidx, 0, doc_get_endidx},
+ {"get_begidx", get_begidx, METH_OLDARGS, doc_get_begidx},
+ {"get_endidx", get_endidx, METH_OLDARGS, doc_get_endidx},
- {"set_completer_delims", set_completer_delims, METH_VARARGS,
- doc_set_completer_delims},
- {"get_completer_delims", get_completer_delims, 0,
- doc_get_completer_delims},
+ {"set_completer_delims", set_completer_delims,
+ METH_VARARGS, doc_set_completer_delims},
+ {"get_completer_delims", get_completer_delims,
+ METH_OLDARGS, doc_get_completer_delims},
{0, 0}
};