We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0501e5f commit 442f91bCopy full SHA for 442f91b
openslide/_convert.c
@@ -102,16 +102,21 @@ static PyMethodDef _convert_methods[] = {
102
{NULL, NULL, 0, NULL}
103
};
104
105
+static PyModuleDef_Slot _convert_slots[] = {
106
+ {0, NULL}
107
+};
108
+
109
static struct PyModuleDef _convert_module = {
110
PyModuleDef_HEAD_INIT,
111
"_convert",
112
NULL,
113
0,
114
_convert_methods,
115
+ _convert_slots,
116
117
118
PyMODINIT_FUNC
119
PyInit__convert(void)
120
{
- return PyModule_Create2(&_convert_module, PYTHON_API_VERSION);
121
+ return PyModuleDef_Init(&_convert_module);
122
}
0 commit comments