Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ac9214

Browse files
committed
fix arg strings
1 parent 43234ab commit 7ac9214

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/posixmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,7 +5074,7 @@ posix_sched_setaffinity(PyObject *self, PyObject *args)
50745074
pid_t pid;
50755075
Py_cpu_set *cpu_set;
50765076

5077-
if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!|sched_setaffinity",
5077+
if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!:schbed_setaffinity",
50785078
&pid, &cpu_set_type, &cpu_set))
50795079
return NULL;
50805080
if (sched_setaffinity(pid, cpu_set->size, cpu_set->set))
@@ -5094,7 +5094,7 @@ posix_sched_getaffinity(PyObject *self, PyObject *args)
50945094
int ncpus;
50955095
Py_cpu_set *res;
50965096

5097-
if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i|sched_getaffinity",
5097+
if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i:sched_getaffinity",
50985098
&pid, &ncpus))
50995099
return NULL;
51005100
res = make_new_cpu_set(&cpu_set_type, ncpus);

0 commit comments

Comments
 (0)