summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-10-08 19:22:26 (GMT)
committerGitHub <noreply@github.com>2022-10-08 19:22:26 (GMT)
commitf6e50b82f68f48323fcee5800396760e4f7833af (patch)
tree62dd2cc1b4b453ffa2ed01238425e245e1df7769 /Modules
parentbdc108772495e67c3add0d742169e0df4effadb2 (diff)
downloadcpython-f6e50b82f68f48323fcee5800396760e4f7833af.zip
cpython-f6e50b82f68f48323fcee5800396760e4f7833af.tar.gz
cpython-f6e50b82f68f48323fcee5800396760e4f7833af.tar.bz2
[3.11] Add more syslog tests (GH-97953). (GH-98096)
(cherry picked from commit cae7d1d7a713f8267daf5e4f2fff5cb1dad02c7c)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/syslogmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index c409fe9..1593eea 100644
--- a/Modules/syslogmodule.c
+++ b/Modules/syslogmodule.c
@@ -235,7 +235,7 @@ syslog_setlogmask(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "l;mask for priority", &maskpri))
return NULL;
- if (PySys_Audit("syslog.setlogmask", "(O)", args ? args : Py_None) < 0) {
+ if (PySys_Audit("syslog.setlogmask", "l", maskpri) < 0) {
return NULL;
}
omaskpri = setlogmask(maskpri);