summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-12-29 21:09:17 (GMT)
committerGeorg Brandl <georg@python.org>2009-12-29 21:09:17 (GMT)
commitfa1ffb69c48edd7c24918407d8b6b80186463602 (patch)
treed4ffe1660ecdc731d10bf3c98e2bd56f974a3978
parent8e3e1d601612783434d61cf8927c55bf866b2f1b (diff)
downloadcpython-fa1ffb69c48edd7c24918407d8b6b80186463602.zip
cpython-fa1ffb69c48edd7c24918407d8b6b80186463602.tar.gz
cpython-fa1ffb69c48edd7c24918407d8b6b80186463602.tar.bz2
#7595: fix typo in argument default constant.
-rw-r--r--Doc/library/select.rst2
-rw-r--r--Modules/selectmodule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
index c0d1f3d..04d6208 100644
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -50,7 +50,7 @@ The module defines the following:
.. versionadded:: 2.6
-.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)
+.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)
(Only supported on BSD.) Returns a kernel event object object; see section
:ref:`kevent-objects` below for the methods supported by kqueue objects.
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index acbea7a..f243a1d 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1161,7 +1161,7 @@ static PyTypeObject pyEpoll_Type = {
#endif
PyDoc_STRVAR(kqueue_event_doc,
-"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)\n\
+"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)\n\
\n\
This object is the equivalent of the struct kevent for the C API.\n\
\n\