mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
This commit is contained in:
parent
a9b2b4be26
commit
43713e5a28
37 changed files with 272 additions and 272 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue