summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 (GMT)
commite365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch)
treecb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/readline.c
parent14f515844d3eae2818af3f1da7b32c38d8e73078 (diff)
downloadcpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip
cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz
cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 0fd4c28..11804c7 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -323,15 +323,19 @@ Insert text into the command line.\
static struct PyMethodDef readline_methods[] =
{
- {"parse_and_bind", parse_and_bind, 1, doc_parse_and_bind},
+ {"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
{"get_line_buffer", get_line_buffer, 0, doc_get_line_buffer},
- {"insert_text", insert_text, 1, doc_insert_text},
- {"read_init_file", read_init_file, 1, doc_read_init_file},
- {"read_history_file", read_history_file, 1, doc_read_history_file},
- {"write_history_file", write_history_file, 1, doc_write_history_file},
- {"set_history_length", set_history_length, 1, set_history_length_doc},
- {"get_history_length", get_history_length, 1, get_history_length_doc},
- {"set_completer", set_completer, 1, doc_set_completer},
+ {"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,
+ METH_VARARGS, doc_read_history_file},
+ {"write_history_file", write_history_file,
+ METH_VARARGS, doc_write_history_file},
+ {"set_history_length", set_history_length,
+ METH_VARARGS, set_history_length_doc},
+ {"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},