https://github.com/python/cpython/commit/a264637654f9d3ac3c140e66fd56ee32faf22431
commit: a264637654f9d3ac3c140e66fd56ee32faf22431
branch: main
author: Filipe Laíns 🇵🇸 <[email protected]>
committer: FFY00 <[email protected]>
date: 2024-11-22T18:50:30Z
summary:
GH-89435: os.path should not be a frozen module (#126924)
files:
M Python/frozen.c
M Tools/build/freeze_modules.py
diff --git a/Python/frozen.c b/Python/frozen.c
index 627f2ff9413562..15d256b6743e0a 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -84,7 +84,6 @@ static const struct _frozen stdlib_modules[] = {
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath),
false},
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath), false},
{"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
- {"os.path", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
{"os", _Py_M__os, (int)sizeof(_Py_M__os), false},
{"site", _Py_M__site, (int)sizeof(_Py_M__site), false},
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat), false},
@@ -116,7 +115,6 @@ const struct _frozen *_PyImport_FrozenTest = test_modules;
static const struct _module_alias aliases[] = {
{"_frozen_importlib", "importlib._bootstrap"},
{"_frozen_importlib_external", "importlib._bootstrap_external"},
- {"os.path", "posixpath"},
{"__hello_alias__", "__hello__"},
{"__phello_alias__", "__hello__"},
{"__phello_alias__.spam", "__hello__"},
diff --git a/Tools/build/freeze_modules.py b/Tools/build/freeze_modules.py
index 7f1dee18319749..8f74abdc83db47 100644
--- a/Tools/build/freeze_modules.py
+++ b/Tools/build/freeze_modules.py
@@ -63,9 +63,6 @@
'genericpath',
'ntpath',
'posixpath',
- # We must explicitly mark os.path as a frozen module
- # even though it will never be imported.
- f'{OS_PATH} : os.path',
'os',
'site',
'stat',
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]