summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/selectmodule.c.h
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@gmail.com>2019-09-14 14:20:27 (GMT)
committerGitHub <noreply@github.com>2019-09-14 14:20:27 (GMT)
commitf919054e539a5c1afde1b31c9fd7a8f5b2313311 (patch)
treea33e0c84afbaaab56ac7f3c1cd4e13b53faf4424 /Modules/clinic/selectmodule.c.h
parent0247e80f3c529900689425676342cb70ea31a13d (diff)
downloadcpython-f919054e539a5c1afde1b31c9fd7a8f5b2313311.zip
cpython-f919054e539a5c1afde1b31c9fd7a8f5b2313311.tar.gz
cpython-f919054e539a5c1afde1b31c9fd7a8f5b2313311.tar.bz2
bpo-38116: Convert select module to PEP-384 (#15971)
* Convert select module to PEP-384 Summary: Do the necessary versions to be Pyro-compatible, including migrating `PyType_Ready` to `PyType_FromSpec` and moving static data into a new `_selectstate` struct. * 📜🤖 Added by blurb_it. * Fixup Mac OS/X build
Diffstat (limited to 'Modules/clinic/selectmodule.c.h')
-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 9015816..670af6a 100644
--- a/Modules/clinic/selectmodule.c.h
+++ b/Modules/clinic/selectmodule.c.h
@@ -959,11 +959,11 @@ select_kqueue(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- if ((type == &kqueue_queue_Type) &&
+ if ((type == _selectstate_global->kqueue_queue_Type) &&
!_PyArg_NoPositional("kqueue", args)) {
goto exit;
}
- if ((type == &kqueue_queue_Type) &&
+ if ((type == _selectstate_global->kqueue_queue_Type) &&
!_PyArg_NoKeywords("kqueue", kwargs)) {
goto exit;
}
@@ -1215,4 +1215,4 @@ exit:
#ifndef SELECT_KQUEUE_CONTROL_METHODDEF
#define SELECT_KQUEUE_CONTROL_METHODDEF
#endif /* !defined(SELECT_KQUEUE_CONTROL_METHODDEF) */
-/*[clinic end generated code: output=03041f3d09b04a3d input=a9049054013a1b77]*/
+/*[clinic end generated code: output=26bb05e5fba2bfd1 input=a9049054013a1b77]*/