summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-03 13:54:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-03 13:54:26 (GMT)
commit7ac9214e4314429447e415abbf080f730b80a721 (patch)
tree8ecb69067e491430fe0b0ae059cfb80b874a8fc8
parent43234ab685996fc2d1ded4863986a797c1453853 (diff)
downloadcpython-7ac9214e4314429447e415abbf080f730b80a721.zip
cpython-7ac9214e4314429447e415abbf080f730b80a721.tar.gz
cpython-7ac9214e4314429447e415abbf080f730b80a721.tar.bz2
fix arg strings
-rw-r--r--Modules/posixmodule.c4
1 files 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);