From: Georg Brandl Date: Tue, 29 Dec 2009 21:09:17 +0000 (+0000) Subject: #7595: fix typo in argument default constant. X-Git-Tag: v2.7a2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa1ffb69c48edd7c24918407d8b6b80186463602;p=thirdparty%2FPython%2Fcpython.git #7595: fix typo in argument default constant. --- diff --git a/Doc/library/select.rst b/Doc/library/select.rst index c0d1f3d9501c..04d6208b23fe 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 acbea7a7605b..f243a1d0a2b6 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\