mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #14605: Stop having implicit entries for sys.meta_path.
ImportWarning is raised if sys.meta_path is found to be empty.
This commit is contained in:
parent
3c6ea1c14d
commit
ce418b448f
8 changed files with 3006 additions and 2983 deletions
|
|
@ -146,7 +146,6 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"_imp", PyInit_imp},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"__main__", NULL},
|
||||
{"builtins", NULL},
|
||||
{"sys", NULL},
|
||||
{"_warnings", _PyWarnings_Init},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue