From 7ac9214e4314429447e415abbf080f730b80a721 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 3 Aug 2011 08:54:26 -0500 Subject: fix arg strings --- Modules/posixmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 572b5d1..da4bb62 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5074,7 +5074,7 @@ posix_sched_setaffinity(PyObject *self, PyObject *args) pid_t pid; Py_cpu_set *cpu_set; - if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!|sched_setaffinity", + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!:schbed_setaffinity", &pid, &cpu_set_type, &cpu_set)) return NULL; if (sched_setaffinity(pid, cpu_set->size, cpu_set->set)) @@ -5094,7 +5094,7 @@ posix_sched_getaffinity(PyObject *self, PyObject *args) int ncpus; Py_cpu_set *res; - if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i|sched_getaffinity", + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i:sched_getaffinity", &pid, &ncpus)) return NULL; res = make_new_cpu_set(&cpu_set_type, ncpus); -- cgit v0.12