summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-29 13:59:29 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-29 13:59:29 (GMT)
commit43713e5a2899930a8698e244b0d0fef59a676d17 (patch)
tree3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/readline.c
parenta9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff)
downloadcpython-43713e5a2899930a8698e244b0d0fef59a676d17.zip
cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz
cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.bz2
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 68f3cf6..d4ba3f8 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -50,7 +50,7 @@ parse_and_bind(self, args)
PyObject *args;
{
char *s, *copy;
- if (!PyArg_ParseTuple(args, "s", &s))
+ if (!PyArg_ParseTuple(args, "s:parse_and_bind", &s))
return NULL;
/* Make a copy -- rl_parse_and_bind() modifies its argument */
/* Bernard Herzog */
@@ -78,7 +78,7 @@ read_init_file(self, args)
PyObject *args;
{
char *s = NULL;
- if (!PyArg_ParseTuple(args, "|z", &s))
+ if (!PyArg_ParseTuple(args, "|z:read_init_file", &s))
return NULL;
errno = rl_read_init_file(s);
if (errno)
@@ -146,7 +146,7 @@ set_completer_delims(self, args)
{
char *break_chars;
- if(!PyArg_ParseTuple(args, "s", &break_chars)) {
+ if(!PyArg_ParseTuple(args, "s:set_completer_delims", &break_chars)) {
return NULL;
}
free(rl_completer_word_break_characters);
@@ -183,7 +183,7 @@ set_completer(self, args)
PyObject *args;
{
PyObject *function = Py_None;
- if (!PyArg_ParseTuple(args, "|O", &function))
+ if (!PyArg_ParseTuple(args, "|O:set_completer", &function))
return NULL;
if (function == Py_None) {
Py_XDECREF(completer);
@@ -239,7 +239,7 @@ insert_text(self, args)
PyObject *args;
{
char *s;
- if (!PyArg_ParseTuple(args, "s", &s))
+ if (!PyArg_ParseTuple(args, "s:insert_text", &s))
return NULL;
rl_insert_text(s);
Py_INCREF(Py_None);