mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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},
|
||||
|
|
|
@ -153,7 +153,6 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"_imp", initimp},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"__main__", NULL},
|
||||
{"builtins", NULL},
|
||||
{"sys", NULL},
|
||||
|
||||
|
|
|
@ -91,7 +91,6 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"_imp", initimp},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"__main__", NULL},
|
||||
{"builtins", NULL},
|
||||
{"sys", NULL},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue