mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #24192: Fix namespace package imports.
This commit is contained in:
parent
188c18d48f
commit
183a941bc1
8 changed files with 4525 additions and 4591 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue