mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Implement InspectLoader for BuiltinImporter.
This commit is contained in:
parent
7aa21f75c1
commit
a113ac58be
7 changed files with 91 additions and 32 deletions
|
@ -14,7 +14,6 @@ class Loader(metaclass=abc.ABCMeta):
|
|||
"""Abstract method which when implemented should load a module."""
|
||||
raise NotImplementedError
|
||||
|
||||
Loader.register(machinery.BuiltinImporter)
|
||||
Loader.register(machinery.FrozenImporter)
|
||||
|
||||
|
||||
|
@ -75,6 +74,8 @@ class InspectLoader(Loader):
|
|||
module."""
|
||||
return NotImplementedError
|
||||
|
||||
InspectLoader.register(machinery.BuiltinImporter)
|
||||
|
||||
|
||||
class PyLoader(_bootstrap.PyLoader, InspectLoader):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue