diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
commit | 43713e5a2899930a8698e244b0d0fef59a676d17 (patch) | |
tree | 3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/soundex.c | |
parent | a9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff) | |
download | cpython-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/soundex.c')
-rw-r--r-- | Modules/soundex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/soundex.c b/Modules/soundex.c index 3ef6824..e905fe0 100644 --- a/Modules/soundex.c +++ b/Modules/soundex.c @@ -125,7 +125,7 @@ get_soundex(PyObject *self, PyObject *args) char *str; char sdx[7]; - if(!PyArg_ParseTuple( args, "s", &str)) + if(!PyArg_ParseTuple( args, "s:get_soundex", &str)) return NULL; soundex_hash(str, sdx); @@ -141,7 +141,7 @@ sound_similar(PyObject *self, PyObject *args) char *str1, *str2; char res1[7], res2[7]; - if(!PyArg_ParseTuple(args, "ss", &str1, &str2)) + if(!PyArg_ParseTuple(args, "ss:sound_similar", &str1, &str2)) return NULL; soundex_hash(str1, res1); |