Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43234ab commit 7ac9214Copy full SHA for 7ac9214
1 file changed
Modules/posixmodule.c
@@ -5074,7 +5074,7 @@ posix_sched_setaffinity(PyObject *self, PyObject *args)
5074
pid_t pid;
5075
Py_cpu_set *cpu_set;
5076
5077
- if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!|sched_setaffinity",
+ if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!:schbed_setaffinity",
5078
&pid, &cpu_set_type, &cpu_set))
5079
return NULL;
5080
if (sched_setaffinity(pid, cpu_set->size, cpu_set->set))
@@ -5094,7 +5094,7 @@ posix_sched_getaffinity(PyObject *self, PyObject *args)
5094
int ncpus;
5095
Py_cpu_set *res;
5096
5097
- if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i|sched_getaffinity",
+ if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i:sched_getaffinity",
5098
&pid, &ncpus))
5099
5100
res = make_new_cpu_set(&cpu_set_type, ncpus);
0 commit comments