Issue #24192: Fix namespace package imports.

This commit is contained in:
Eric Snow 2015-05-15 21:54:59 -06:00
parent 188c18d48f
commit 183a941bc1
8 changed files with 4525 additions and 4591 deletions

View file

@ -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.