summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.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/_localemodule.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/_localemodule.c')
-rw-r--r--Modules/_localemodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 3b84729..2f14790 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -135,7 +135,7 @@ PyLocale_setlocale(self,args)
char *locale=0,*result;
PyObject *result_object;
struct lconv *lc;
- if(!PyArg_ParseTuple(args,"i|z",&category,&locale))return 0;
+ if(!PyArg_ParseTuple(args,"i|z:setlocale",&category,&locale))return 0;
if(locale){
/* set locale */
result=setlocale(category,locale);
@@ -266,7 +266,7 @@ PyLocale_strcoll(self,args)
PyObject *args;
{
char *s1,*s2;
- if(!PyArg_ParseTuple(args,"ss",&s1,&s2))
+ if(!PyArg_ParseTuple(args,"ss:strcoll",&s1,&s2))
return NULL;
return PyInt_FromLong(strcoll(s1,s2));
}
@@ -283,7 +283,7 @@ PyLocale_strxfrm(self,args)
char *s,*buf;
int n1,n2;
PyObject *result;
- if(!PyArg_ParseTuple(args,"s",&s))
+ if(!PyArg_ParseTuple(args,"s:strxfrm",&s))
return NULL;
/* assume no change in size, first */
n1=strlen(s)+1;