mirror of
https://github.com/python/cpython.git
synced 2025-09-12 19:57:40 +00:00
bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358)
This commit is contained in:
parent
69a6173d64
commit
3409899128
3 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
:data:`sys.stdlib_module_names` now contains the macOS-specific module
|
||||||
|
:mod:`_scproxy`.
|
|
@ -61,6 +61,7 @@ static const char* _Py_stdlib_module_names[] = {
|
||||||
"_pyio",
|
"_pyio",
|
||||||
"_queue",
|
"_queue",
|
||||||
"_random",
|
"_random",
|
||||||
|
"_scproxy",
|
||||||
"_sha1",
|
"_sha1",
|
||||||
"_sha256",
|
"_sha256",
|
||||||
"_sha3",
|
"_sha3",
|
||||||
|
|
|
@ -54,6 +54,10 @@ WINDOWS_MODULES = (
|
||||||
'winsound'
|
'winsound'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# macOS extension modules
|
||||||
|
MACOS_MODULES = (
|
||||||
|
'_scproxy',
|
||||||
|
)
|
||||||
|
|
||||||
# Pure Python modules (Lib/*.py)
|
# Pure Python modules (Lib/*.py)
|
||||||
def list_python_modules(names):
|
def list_python_modules(names):
|
||||||
|
@ -136,7 +140,7 @@ def list_frozen(names):
|
||||||
|
|
||||||
|
|
||||||
def list_modules():
|
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_modules_setup_extensions(names)
|
||||||
list_setup_extensions(names)
|
list_setup_extensions(names)
|
||||||
list_packages(names)
|
list_packages(names)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue