mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Implement InspectLoader for FrozenImporter.
This commit is contained in:
parent
2b9fd47da7
commit
8d11013169
6 changed files with 100 additions and 10 deletions
|
@ -14,8 +14,6 @@ class Loader(metaclass=abc.ABCMeta):
|
|||
"""Abstract method which when implemented should load a module."""
|
||||
raise NotImplementedError
|
||||
|
||||
Loader.register(machinery.FrozenImporter)
|
||||
|
||||
|
||||
class Finder(metaclass=abc.ABCMeta):
|
||||
|
||||
|
@ -75,6 +73,7 @@ class InspectLoader(Loader):
|
|||
return NotImplementedError
|
||||
|
||||
InspectLoader.register(machinery.BuiltinImporter)
|
||||
InspectLoader.register(machinery.FrozenImporter)
|
||||
|
||||
|
||||
class PyLoader(_bootstrap.PyLoader, InspectLoader):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue