summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2020-11-21 19:29:26 (GMT)
committerGitHub <noreply@github.com>2020-11-21 19:29:26 (GMT)
commitea97ebab3578a6e0bb505da96819ac44d422a6cb (patch)
tree9b87cbb75deabb8df304778382091a1f4170ebf1 /Modules/clinic
parent035deee265c7fb227ddc87222fa48761231d8bd7 (diff)
downloadcpython-ea97ebab3578a6e0bb505da96819ac44d422a6cb.zip
cpython-ea97ebab3578a6e0bb505da96819ac44d422a6cb.tar.gz
cpython-ea97ebab3578a6e0bb505da96819ac44d422a6cb.tar.bz2
bpo-1635741: Port select module to multiphase init (GH-23409)
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/selectmodule.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/selectmodule.c.h b/Modules/clinic/selectmodule.c.h
index 00a78c4..d7095df 100644
--- a/Modules/clinic/selectmodule.c.h
+++ b/Modules/clinic/selectmodule.c.h
@@ -933,11 +933,11 @@ select_kqueue(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- if ((type == _selectstate_global->kqueue_queue_Type) &&
+ if ((type == _selectstate_by_type(type)->kqueue_queue_Type) &&
!_PyArg_NoPositional("kqueue", args)) {
goto exit;
}
- if ((type == _selectstate_global->kqueue_queue_Type) &&
+ if ((type == _selectstate_by_type(type)->kqueue_queue_Type) &&
!_PyArg_NoKeywords("kqueue", kwargs)) {
goto exit;
}
@@ -1179,4 +1179,4 @@ exit:
#ifndef SELECT_KQUEUE_CONTROL_METHODDEF
#define SELECT_KQUEUE_CONTROL_METHODDEF
#endif /* !defined(SELECT_KQUEUE_CONTROL_METHODDEF) */
-/*[clinic end generated code: output=162f4f4efa850416 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=cd2062a787e13b35 input=a9049054013a1b77]*/