mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
GH-89435: os.path should not be a frozen module (#126924)
This commit is contained in:
parent
4759ba6eec
commit
a264637654
2 changed files with 0 additions and 5 deletions
|
@ -84,7 +84,6 @@ static const struct _frozen stdlib_modules[] = {
|
||||||
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath), false},
|
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath), false},
|
||||||
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath), false},
|
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath), false},
|
||||||
{"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), 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},
|
{"os", _Py_M__os, (int)sizeof(_Py_M__os), false},
|
||||||
{"site", _Py_M__site, (int)sizeof(_Py_M__site), false},
|
{"site", _Py_M__site, (int)sizeof(_Py_M__site), false},
|
||||||
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat), 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[] = {
|
static const struct _module_alias aliases[] = {
|
||||||
{"_frozen_importlib", "importlib._bootstrap"},
|
{"_frozen_importlib", "importlib._bootstrap"},
|
||||||
{"_frozen_importlib_external", "importlib._bootstrap_external"},
|
{"_frozen_importlib_external", "importlib._bootstrap_external"},
|
||||||
{"os.path", "posixpath"},
|
|
||||||
{"__hello_alias__", "__hello__"},
|
{"__hello_alias__", "__hello__"},
|
||||||
{"__phello_alias__", "__hello__"},
|
{"__phello_alias__", "__hello__"},
|
||||||
{"__phello_alias__.spam", "__hello__"},
|
{"__phello_alias__.spam", "__hello__"},
|
||||||
|
|
|
@ -63,9 +63,6 @@ FROZEN = [
|
||||||
'genericpath',
|
'genericpath',
|
||||||
'ntpath',
|
'ntpath',
|
||||||
'posixpath',
|
'posixpath',
|
||||||
# We must explicitly mark os.path as a frozen module
|
|
||||||
# even though it will never be imported.
|
|
||||||
f'{OS_PATH} : os.path',
|
|
||||||
'os',
|
'os',
|
||||||
'site',
|
'site',
|
||||||
'stat',
|
'stat',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue