From 183a941bc148533a299c39123e7d6fe33c655c36 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Fri, 15 May 2015 21:54:59 -0600 Subject: Issue #24192: Fix namespace package imports. --- Lib/importlib/abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/importlib/abc.py') diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index d1f03648e7..11af22dab9 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -1,4 +1,5 @@ """Abstract base classes related to import.""" +from . import _bootstrap from . import _bootstrap_external from . import machinery try: @@ -152,7 +153,7 @@ class Loader(metaclass=abc.ABCMeta): """ if not hasattr(self, 'exec_module'): raise ImportError - return _bootstrap_external._load_module_shim(self, fullname) + return _bootstrap._load_module_shim(self, fullname) def module_repr(self, module): """Return a module's repr. -- cgit v1.2.1