]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Nov 2021 11:32:36 +0000 (04:32 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 11:32:36 +0000 (12:32 +0100)
Co-authored-by: Christian Heimes <christian@python.org>
Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst [new file with mode: 0644]
Python/stdlib_module_names.h
Tools/scripts/generate_stdlib_module_names.py

diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst b/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst
new file mode 100644 (file)
index 0000000..afd73a1
--- /dev/null
@@ -0,0 +1,2 @@
+:data:`sys.stdlib_module_names` now contains the macOS-specific module
+:mod:`_scproxy`.
index b09b8dc7a394ae5037ac18147110022485702ff0..50cf340e543b407cd8e1e10d29f327cc09bd3ebe 100644 (file)
@@ -61,6 +61,7 @@ static const char* _Py_stdlib_module_names[] = {
 "_pyio",
 "_queue",
 "_random",
+"_scproxy",
 "_sha1",
 "_sha256",
 "_sha3",
index 716a6d4b7a07f3b154ea680aa87a63588db83d2b..dc6a074274715ef77d3caaa0adebafd8ae10e743 100644 (file)
@@ -51,6 +51,10 @@ WINDOWS_MODULES = (
     'winsound'
 )
 
+# macOS extension modules
+MACOS_MODULES = (
+    '_scproxy',
+)
 
 # Pure Python modules (Lib/*.py)
 def list_python_modules(names):
@@ -123,7 +127,7 @@ def list_frozen(names):
 
 
 def list_modules():
-    names = set(sys.builtin_module_names) | set(WINDOWS_MODULES)
+    names = set(sys.builtin_module_names) | set(WINDOWS_MODULES) | set(MACOS_MODULES)
     list_modules_setup_extensions(names)
     list_setup_extensions(names)
     list_packages(names)