diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-21 03:29:05 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-21 03:29:05 (GMT) |
commit | 7b87f85c78ef6628db36b93629c4c698a93def3f (patch) | |
tree | 1e8c1c68f5ce855035017f26df71e8b0e391107e /Modules | |
parent | e9719fe1a79d1bf0db1729940e84538ea83dff88 (diff) | |
download | cpython-7b87f85c78ef6628db36b93629c4c698a93def3f.zip cpython-7b87f85c78ef6628db36b93629c4c698a93def3f.tar.gz cpython-7b87f85c78ef6628db36b93629c4c698a93def3f.tar.bz2 |
Add :method info to the PyArg_ParseTuple() format strings for poll objects.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index b0139e8..31ac9b0 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -362,7 +362,7 @@ poll_register(pollObject *self, PyObject *args) PyObject *o, *key, *value; int fd, events = POLLIN | POLLPRI | POLLOUT; - if (!PyArg_ParseTuple(args, "O|i", &o, &events)) { + if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) { return NULL; } @@ -392,7 +392,7 @@ poll_unregister(pollObject *self, PyObject *args) PyObject *o, *key; int fd; - if (!PyArg_ParseTuple(args, "O", &o)) { + if (!PyArg_ParseTuple(args, "O:unregister", &o)) { return NULL; } @@ -431,7 +431,7 @@ poll_poll(pollObject *self, PyObject *args) int timeout = 0, poll_result, i, j; PyObject *value = NULL, *num = NULL; - if (!PyArg_ParseTuple(args, "|O", &tout)) { + if (!PyArg_ParseTuple(args, "|O:poll", &tout)) { return NULL; } |