summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-02 11:08:40 (GMT)
committerGitHub <noreply@github.com>2021-11-02 11:08:40 (GMT)
commit34098991289cb3e8eec012fa0243f30b9709666f (patch)
treebd4dfb2cefbb298a2a73e0a30285c741b8d24662 /Tools
parent69a6173d64332cd4992024c5f6a9f3f5fd6523d5 (diff)
downloadcpython-34098991289cb3e8eec012fa0243f30b9709666f.zip
cpython-34098991289cb3e8eec012fa0243f30b9709666f.tar.gz
cpython-34098991289cb3e8eec012fa0243f30b9709666f.tar.bz2
bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/generate_stdlib_module_names.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/scripts/generate_stdlib_module_names.py b/Tools/scripts/generate_stdlib_module_names.py
index 50042f1..3e896ba 100644
--- a/Tools/scripts/generate_stdlib_module_names.py
+++ b/Tools/scripts/generate_stdlib_module_names.py
@@ -54,6 +54,10 @@ WINDOWS_MODULES = (
'winsound'
)
+# macOS extension modules
+MACOS_MODULES = (
+ '_scproxy',
+)
# Pure Python modules (Lib/*.py)
def list_python_modules(names):
@@ -136,7 +140,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)