diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-19 13:43:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 13:43:43 +0100 |
commit | 3390347aa036404453213d589fe1e35902e55fd4 (patch) | |
tree | 49309f502a12cfece7b30190f3f36a8ab1143d46 /Lib/importlib/__init__.py | |
parent | 7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f (diff) | |
download | cpython-git-3390347aa036404453213d589fe1e35902e55fd4.tar.gz |
bpo-42403: Simplify importlib external bootstrap (GH-23397)
Simplify the importlib external bootstrap code:
importlib._bootstrap_external now uses regular imports to import
builtin modules. When it is imported, the builtin __import__()
function is already fully working and so can be used to import
builtin modules like sys.
Diffstat (limited to 'Lib/importlib/__init__.py')
-rw-r--r-- | Lib/importlib/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index bea37d7662..03ff71489a 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -34,7 +34,7 @@ try: import _frozen_importlib_external as _bootstrap_external except ImportError: from . import _bootstrap_external - _bootstrap_external._setup(_bootstrap) + _bootstrap_external._set_bootstrap_module(_bootstrap) _bootstrap._bootstrap_external = _bootstrap_external else: _bootstrap_external.__name__ = 'importlib._bootstrap_external' |