From 6029e086911be873b2ebacb933e3df08c23084e4 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Sat, 25 Jan 2014 15:32:46 -0700 Subject: Issue 19944: Fix importlib.find_spec() so it imports parents as needed. The function is also moved to importlib.util. --- 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 7beae1203a..326657aa88 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -611,7 +611,7 @@ def get_data(package, resource): which does not support get_data(), then None is returned. """ - spec = importlib.find_spec(package) + spec = importlib.util.find_spec(package) if spec is None: return None loader = spec.loader -- cgit v1.2.1