diff --git a/Misc/NEWS.d/next/Library/2024-09-10-11-26-14.gh-issue-123892.2gzIrz.rst b/Misc/NEWS.d/next/Library/2024-09-10-11-26-14.gh-issue-123892.2gzIrz.rst new file mode 100644 index 00000000000..bef534427d9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-09-10-11-26-14.gh-issue-123892.2gzIrz.rst @@ -0,0 +1 @@ +Add ``"_wmi"`` to :data:`sys.stdlib_module_names`. Patch by Victor Stinner. diff --git a/Python/stdlib_module_names.h b/Python/stdlib_module_names.h index 4d595d98445..c8cdb933bb1 100644 --- a/Python/stdlib_module_names.h +++ b/Python/stdlib_module_names.h @@ -97,6 +97,7 @@ static const char* _Py_stdlib_module_names[] = { "_weakref", "_weakrefset", "_winapi", +"_wmi", "_zoneinfo", "abc", "annotationlib", diff --git a/Tools/build/check_extension_modules.py b/Tools/build/check_extension_modules.py index cef97a4799e..66b2a262e11 100644 --- a/Tools/build/check_extension_modules.py +++ b/Tools/build/check_extension_modules.py @@ -54,6 +54,7 @@ WINDOWS_MODULES = { "_overlapped", "_testconsole", "_winapi", + "_wmi", "msvcrt", "nt", "winreg",