From: Benjamin Peterson Date: Wed, 3 Aug 2011 13:54:26 +0000 (-0500) Subject: fix arg strings X-Git-Tag: v3.3.0a1~1754 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ac9214e4314429447e415abbf080f730b80a721;p=thirdparty%2FPython%2Fcpython.git fix arg strings --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 572b5d1c08d6..da4bb627ca1f 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);