summaryrefslogtreecommitdiff
path: root/Modules/syslogmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-29 13:59:29 +0000
committerGuido van Rossum <guido@python.org>2000-02-29 13:59:29 +0000
commit43713e5a2899930a8698e244b0d0fef59a676d17 (patch)
tree3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/syslogmodule.c
parenta9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff)
downloadcpython-git-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Diffstat (limited to 'Modules/syslogmodule.c')
-rw-r--r--Modules/syslogmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index 60889b1530..6f192c3d5b 100644
--- a/Modules/syslogmodule.c
+++ b/Modules/syslogmodule.c
@@ -105,7 +105,7 @@ syslog_closelog(self, args)
PyObject * self;
PyObject * args;
{
- if (!PyArg_ParseTuple(args, ""))
+ if (!PyArg_ParseTuple(args, ":closelog"))
return NULL;
closelog();
Py_XDECREF(S_ident_o);
@@ -134,7 +134,7 @@ syslog_log_mask(self, args)
{
long mask;
long pri;
- if (!PyArg_ParseTuple(args, "l", &pri))
+ if (!PyArg_ParseTuple(args, "l:LOG_MASK", &pri))
return NULL;
mask = LOG_MASK(pri);
return PyInt_FromLong(mask);
@@ -147,7 +147,7 @@ syslog_log_upto(self, args)
{
long mask;
long pri;
- if (!PyArg_ParseTuple(args, "l", &pri))
+ if (!PyArg_ParseTuple(args, "l:LOG_UPTO", &pri))
return NULL;
mask = LOG_UPTO(pri);
return PyInt_FromLong(mask);