diff options
author | Brett Cannon <brett@python.org> | 2012-04-15 20:08:47 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-15 20:08:47 (GMT) |
commit | 6f44d66bc491bad5b8d897a68da68e009e27829d (patch) | |
tree | 311e790c6611c8dc6af47bdadce99e9730fda9fe /PC | |
parent | 7788838473aa3993d29fcf9de25605d492f25d29 (diff) | |
download | cpython-6f44d66bc491bad5b8d897a68da68e009e27829d.zip cpython-6f44d66bc491bad5b8d897a68da68e009e27829d.tar.gz cpython-6f44d66bc491bad5b8d897a68da68e009e27829d.tar.bz2 |
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.
Diffstat (limited to 'PC')
-rw-r--r-- | PC/config.c | 2 | ||||
-rw-r--r-- | PC/os2emx/config.c | 2 | ||||
-rw-r--r-- | PC/os2vacpp/config.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 @@ struct _inittab _PyImport_Inittab[] = { {"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 @@ struct _inittab _PyImport_Inittab[] = { {"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 @@ struct _inittab _PyImport_Inittab[] = { {"marshal", PyMarshal_Init}, /* This lives it with import.c */ - {"imp", initimp}, + {"_imp", initimp}, /* These entries are here for sys.builtin_module_names */ {"__main__", NULL}, |