diff options
Diffstat (limited to 'Lib/importlib/__init__.py')
-rw-r--r-- | Lib/importlib/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index 8d11502d56..d3e7f8b9b7 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -38,6 +38,8 @@ def _reset__import__(): __builtins__['__import__'] = original__import__ +# Bootstrap help ##################################################### + def _case_ok(directory, check): """Check if the directory contains something matching 'check'. @@ -110,6 +112,8 @@ marshal._w_long = _w_long marshal._r_long = _r_long +# Public API ######################################################### + __import__ = _bootstrap.Import().__call__ @@ -134,5 +138,5 @@ def import_module(name, package=None): return sys.modules[name] - +# XXX This should go away once the public API is done. from ._bootstrap import * |