From 2a17bde930af72995a217f6625d763e828bf5ce1 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 30 May 2014 14:55:29 -0400 Subject: Issue #20383: Introduce importlib.util.module_from_spec(). Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway. --- Lib/importlib/util.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/importlib/util.py') diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py index e50ef6dc273..2424144b91f 100644 --- a/Lib/importlib/util.py +++ b/Lib/importlib/util.py @@ -3,6 +3,7 @@ from . import abc from ._bootstrap import MAGIC_NUMBER from ._bootstrap import cache_from_source from ._bootstrap import decode_source +from ._bootstrap import module_from_spec from ._bootstrap import source_from_cache from ._bootstrap import spec_from_loader from ._bootstrap import spec_from_file_location -- cgit v1.2.3