File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1277,21 +1277,26 @@ static PyMethodDef imath_methods[] = {
12771277 {NULL , NULL } /* sentinel */
12781278};
12791279
1280+ static PyModuleDef_Slot imath_slots [] = {
1281+ {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
1282+ {Py_mod_gil , Py_MOD_GIL_NOT_USED },
1283+ {0 , NULL }
1284+ };
12801285
12811286PyDoc_STRVAR (module_doc ,
12821287"This module provides access to integer related mathematical functions." );
12831288
1284-
12851289static struct PyModuleDef imathmodule = {
12861290 PyModuleDef_HEAD_INIT ,
12871291 .m_name = "imath" ,
12881292 .m_doc = module_doc ,
12891293 .m_size = 0 ,
12901294 .m_methods = imath_methods ,
1295+ .m_slots = imath_slots ,
12911296};
12921297
12931298PyMODINIT_FUNC
12941299PyInit_imath (void )
12951300{
1296- return PyModule_Create (& imathmodule );
1301+ return PyModuleDef_Init (& imathmodule );
12971302}
You can’t perform that action at this time.
0 commit comments