summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/selectmodule.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/clinic/selectmodule.c.h')
-rw-r--r--Modules/clinic/selectmodule.c.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/clinic/selectmodule.c.h b/Modules/clinic/selectmodule.c.h
index d7095df..a1695f2 100644
--- a/Modules/clinic/selectmodule.c.h
+++ b/Modules/clinic/selectmodule.c.h
@@ -933,11 +933,13 @@ select_kqueue(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- if ((type == _selectstate_by_type(type)->kqueue_queue_Type) &&
+ if ((type == _selectstate_by_type(type)->kqueue_queue_Type ||
+ type->tp_init == _selectstate_by_type(type)->kqueue_queue_Type->tp_init) &&
!_PyArg_NoPositional("kqueue", args)) {
goto exit;
}
- if ((type == _selectstate_by_type(type)->kqueue_queue_Type) &&
+ if ((type == _selectstate_by_type(type)->kqueue_queue_Type ||
+ type->tp_init == _selectstate_by_type(type)->kqueue_queue_Type->tp_init) &&
!_PyArg_NoKeywords("kqueue", kwargs)) {
goto exit;
}
@@ -1179,4 +1181,4 @@ exit:
#ifndef SELECT_KQUEUE_CONTROL_METHODDEF
#define SELECT_KQUEUE_CONTROL_METHODDEF
#endif /* !defined(SELECT_KQUEUE_CONTROL_METHODDEF) */
-/*[clinic end generated code: output=cd2062a787e13b35 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=ed1e5a658863244c input=a9049054013a1b77]*/