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[] = {
1277
1277
{NULL , NULL } /* sentinel */
1278
1278
};
1279
1279
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
+ };
1280
1285
1281
1286
PyDoc_STRVAR (module_doc ,
1282
1287
"This module provides access to integer related mathematical functions." );
1283
1288
1284
-
1285
1289
static struct PyModuleDef imathmodule = {
1286
1290
PyModuleDef_HEAD_INIT ,
1287
1291
.m_name = "imath" ,
1288
1292
.m_doc = module_doc ,
1289
1293
.m_size = 0 ,
1290
1294
.m_methods = imath_methods ,
1295
+ .m_slots = imath_slots ,
1291
1296
};
1292
1297
1293
1298
PyMODINIT_FUNC
1294
1299
PyInit_imath (void )
1295
1300
{
1296
- return PyModule_Create (& imathmodule );
1301
+ return PyModuleDef_Init (& imathmodule );
1297
1302
}
You can’t perform that action at this time.
0 commit comments