Skip to content

Commit 637c3e5

Browse files
committed
Mark _wmi module
1 parent 3e8fee5 commit 637c3e5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PC/_wmimodule.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,18 @@ static PyMethodDef wmi_functions[] = {
362362
{ NULL, NULL, 0, NULL }
363363
};
364364

365+
static PyModuleDef_Slot wmi_slots[] = {
366+
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
367+
{0, NULL},
368+
};
369+
365370
static PyModuleDef wmi_def = {
366371
PyModuleDef_HEAD_INIT,
367372
"_wmi",
368-
NULL, // doc
369-
0, // m_size
370-
wmi_functions
373+
NULL, // doc
374+
0, // m_size
375+
wmi_functions, // m_methods
376+
wmi_slots, // m_slots
371377
};
372378

373379
extern "C" {

0 commit comments

Comments
 (0)