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 e9719fe commit 7b87f85Copy full SHA for 7b87f85
1 file changed
Modules/selectmodule.c
@@ -362,7 +362,7 @@ poll_register(pollObject *self, PyObject *args)
362
PyObject *o, *key, *value;
363
int fd, events = POLLIN | POLLPRI | POLLOUT;
364
365
- if (!PyArg_ParseTuple(args, "O|i", &o, &events)) {
+ if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
366
return NULL;
367
}
368
@@ -392,7 +392,7 @@ poll_unregister(pollObject *self, PyObject *args)
392
PyObject *o, *key;
393
int fd;
394
395
- if (!PyArg_ParseTuple(args, "O", &o)) {
+ if (!PyArg_ParseTuple(args, "O:unregister", &o)) {
396
397
398
@@ -431,7 +431,7 @@ poll_poll(pollObject *self, PyObject *args)
431
int timeout = 0, poll_result, i, j;
432
PyObject *value = NULL, *num = NULL;
433
434
- if (!PyArg_ParseTuple(args, "|O", &tout)) {
+ if (!PyArg_ParseTuple(args, "|O:poll", &tout)) {
435
436
437
0 commit comments