summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-09-30 01:24:55 (GMT)
committerGitHub <noreply@github.com>2024-09-30 01:24:55 (GMT)
commit612e469624c64ade080b1fc79085e1e30e9eb394 (patch)
tree3cdb1367705d0791b28dbaf7c537f5c1020e2f07
parent601ef402fd75a55f0a07bdc8c85b236800fcc6eb (diff)
downloadcpython-612e469624c64ade080b1fc79085e1e30e9eb394.zip
cpython-612e469624c64ade080b1fc79085e1e30e9eb394.tar.gz
cpython-612e469624c64ade080b1fc79085e1e30e9eb394.tar.bz2
[3.13] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123896)
gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (cherry picked from commit fb1b51a58df4315f7ef3171a5abeb74f132b0971) Co-authored-by: Victor Stinner <vstinner@python.org>
-rw-r--r--Misc/NEWS.d/next/Library/2024-09-10-11-26-14.gh-issue-123892.2gzIrz.rst1
-rw-r--r--Python/stdlib_module_names.h1
-rw-r--r--Tools/build/check_extension_modules.py1
3 files changed, 3 insertions, 0 deletions
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 0000000..bef5344
--- /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 9686d10..faeed0b 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",
"antigravity",
diff --git a/Tools/build/check_extension_modules.py b/Tools/build/check_extension_modules.py
index a9fee49..7de35b4 100644
--- a/Tools/build/check_extension_modules.py
+++ b/Tools/build/check_extension_modules.py
@@ -53,6 +53,7 @@ WINDOWS_MODULES = {
"_overlapped",
"_testconsole",
"_winapi",
+ "_wmi",
"msvcrt",
"nt",
"winreg",