From 6b4be195cd8868b76eb6fbe166acc39beee8ce36 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 22 May 2017 21:36:03 -0700 Subject: bpo-22257: Small changes for PEP 432. (#1728) PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes. --- Lib/importlib/_bootstrap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/importlib/_bootstrap.py') diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index a531a0351d..891bd062bb 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1134,12 +1134,15 @@ def _setup(sys_module, _imp_module): def _install(sys_module, _imp_module): - """Install importlib as the implementation of import.""" + """Install importers for builtin and frozen modules""" _setup(sys_module, _imp_module) sys.meta_path.append(BuiltinImporter) sys.meta_path.append(FrozenImporter) + +def _install_external_importers(): + """Install importers that require external filesystem access""" global _bootstrap_external import _frozen_importlib_external _bootstrap_external = _frozen_importlib_external -- cgit v1.2.1