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/pkgutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pkgutil.py') diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index a54e9474d5..fc4a074f5b 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -616,7 +616,7 @@ def get_data(package, resource): return None # XXX needs test mod = (sys.modules.get(package) or - importlib._bootstrap._SpecMethods(spec).load()) + importlib._bootstrap._load(spec)) if mod is None or not hasattr(mod, '__file__'): return None -- cgit v1.2.1