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:
Brett Cannon 2012-04-27 14:01:58 -04:00
parent 3c6ea1c14d
commit ce418b448f
8 changed files with 3006 additions and 2983 deletions

View file

@ -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},

View file

@ -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},

View file

@ -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},