summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-27 18:01:58 (GMT)
committerBrett Cannon <brett@python.org>2012-04-27 18:01:58 (GMT)
commitce418b448f431f2e62f0517f337f5b6762f4ae45 (patch)
treeec7424354c7da9d2d19419d7619bbf1607915308 /PC
parent3c6ea1c14dc7a3eb67d46f96b3acdb83586f42ae (diff)
downloadcpython-ce418b448f431f2e62f0517f337f5b6762f4ae45.zip
cpython-ce418b448f431f2e62f0517f337f5b6762f4ae45.tar.gz
cpython-ce418b448f431f2e62f0517f337f5b6762f4ae45.tar.bz2
Issue #14605: Stop having implicit entries for sys.meta_path.
ImportWarning is raised if sys.meta_path is found to be empty.
Diffstat (limited to 'PC')
-rw-r--r--PC/config.c1
-rw-r--r--PC/os2emx/config.c1
-rw-r--r--PC/os2vacpp/config.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/PC/config.c b/PC/config.c
index 2d2141d..57b5073 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 76c7ec6..5879110 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 065343e..b26b521 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},