From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:11:56 +0000 (+0200) Subject: [3.12] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123897) X-Git-Tag: v3.12.7~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1248524940978521f34401717f084c6d9b636374;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123897) gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (cherry picked from commit fb1b51a58df4315f7ef3171a5abeb74f132b0971) Co-authored-by: Victor Stinner --- 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 000000000000..bef534427d9a --- /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 ed4a0ac2dd32..1b1a1bdee784 100644 --- a/Python/stdlib_module_names.h +++ b/Python/stdlib_module_names.h @@ -89,6 +89,7 @@ static const char* _Py_stdlib_module_names[] = { "_weakref", "_weakrefset", "_winapi", +"_wmi", "_zoneinfo", "abc", "aifc", diff --git a/Tools/build/check_extension_modules.py b/Tools/build/check_extension_modules.py index 59239c62e2ef..aa1ade71a8e9 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",