Issue #13959: Rename imp to _imp and add Lib/imp.py and begin
rewriting functionality in pure Python.
To start, imp.new_module() has been rewritten in pure Python, put into
importlib (privately) and then publicly exposed in imp.
diff --git a/PC/config.c b/PC/config.c
index be51b55..d055f9a 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -143,7 +143,7 @@
{"marshal", PyMarshal_Init},
/* This lives it with import.c */
- {"imp", PyInit_imp},
+ {"_imp", PyInit_imp},
/* These entries are here for sys.builtin_module_names */
{"__main__", NULL},
diff --git a/PC/os2emx/config.c b/PC/os2emx/config.c
index 218aa68..76c7ec6 100644
--- a/PC/os2emx/config.c
+++ b/PC/os2emx/config.c
@@ -150,7 +150,7 @@
{"marshal", PyMarshal_Init},
/* This lives it with import.c */
- {"imp", initimp},
+ {"_imp", initimp},
/* These entries are here for sys.builtin_module_names */
{"__main__", NULL},
diff --git a/PC/os2vacpp/config.c b/PC/os2vacpp/config.c
index bbdf6f3..065343e 100644
--- a/PC/os2vacpp/config.c
+++ b/PC/os2vacpp/config.c
@@ -88,7 +88,7 @@
{"marshal", PyMarshal_Init},
/* This lives it with import.c */
- {"imp", initimp},
+ {"_imp", initimp},
/* These entries are here for sys.builtin_module_names */
{"__main__", NULL},