Skip to content

Commit 14970f0

Browse files
committed
#7595: fix typo in argument default constant.
1 parent ae53754 commit 14970f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/select.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The module defines the following:
5050
.. versionadded:: 2.6
5151

5252

53-
.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)
53+
.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)
5454

5555
(Only supported on BSD.) Returns a kernel event object object; see section
5656
:ref:`kevent-objects` below for the methods supported by kqueue objects.

Modules/selectmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ static PyTypeObject pyEpoll_Type = {
11611161
#endif
11621162

11631163
PyDoc_STRVAR(kqueue_event_doc,
1164-
"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)\n\
1164+
"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)\n\
11651165
\n\
11661166
This object is the equivalent of the struct kevent for the C API.\n\
11671167
\n\

0 commit comments

Comments
 (0)