mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
fix arg strings
This commit is contained in:
parent
43234ab685
commit
7ac9214e43
1 changed files with 2 additions and 2 deletions
|
|
@ -5074,7 +5074,7 @@ posix_sched_setaffinity(PyObject *self, PyObject *args)
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
Py_cpu_set *cpu_set;
|
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))
|
&pid, &cpu_set_type, &cpu_set))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (sched_setaffinity(pid, cpu_set->size, cpu_set->set))
|
if (sched_setaffinity(pid, cpu_set->size, cpu_set->set))
|
||||||
|
|
@ -5094,7 +5094,7 @@ posix_sched_getaffinity(PyObject *self, PyObject *args)
|
||||||
int ncpus;
|
int ncpus;
|
||||||
Py_cpu_set *res;
|
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))
|
&pid, &ncpus))
|
||||||
return NULL;
|
return NULL;
|
||||||
res = make_new_cpu_set(&cpu_set_type, ncpus);
|
res = make_new_cpu_set(&cpu_set_type, ncpus);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue