Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 637c3e5

Browse filesBrowse files
committed
Mark _wmi module
1 parent 3e8fee5 commit 637c3e5
Copy full SHA for 637c3e5

File tree

Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed

‎PC/_wmimodule.cpp

Copy file name to clipboardExpand all lines: PC/_wmimodule.cpp
+9-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.