mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoader
conform the the InspectLoader ABC. Perk of this is that runpy/-m can now work with namespace packages.
This commit is contained in:
parent
645ab68f25
commit
13d8ff9c5b
5 changed files with 1156 additions and 1079 deletions
|
@ -188,7 +188,7 @@ class InspectLoader(Loader):
|
|||
load_module = _bootstrap._LoaderBasics.load_module
|
||||
|
||||
_register(InspectLoader, machinery.BuiltinImporter, machinery.FrozenImporter,
|
||||
machinery.ExtensionFileLoader)
|
||||
machinery.ExtensionFileLoader, _bootstrap.NamespaceLoader)
|
||||
|
||||
|
||||
class ExecutionLoader(InspectLoader):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue