From ce418b448f431f2e62f0517f337f5b6762f4ae45 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 27 Apr 2012 14:01:58 -0400 Subject: Issue #14605: Stop having implicit entries for sys.meta_path. ImportWarning is raised if sys.meta_path is found to be empty. --- PC/config.c | 1 - PC/os2emx/config.c | 1 - PC/os2vacpp/config.c | 1 - 3 files changed, 3 deletions(-) (limited to 'PC') diff --git a/PC/config.c b/PC/config.c index 2d2141d5f3..57b5073c71 100644 --- a/PC/config.c +++ b/PC/config.c @@ -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}, diff --git a/PC/os2emx/config.c b/PC/os2emx/config.c index 76c7ec6390..5879110aa6 100644 --- a/PC/os2emx/config.c +++ b/PC/os2emx/config.c @@ -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}, diff --git a/PC/os2vacpp/config.c b/PC/os2vacpp/config.c index 065343e347..b26b5217da 100644 --- a/PC/os2vacpp/config.c +++ b/PC/os2vacpp/config.c @@ -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}, -- cgit v1.2.1