diff options
| author | Brett Cannon <bcannon@gmail.com> | 2009-03-15 01:41:33 +0000 |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2009-03-15 01:41:33 +0000 |
| commit | a113ac58be3ee73d1382af3bfbf47b7ed5e5f5a9 (patch) | |
| tree | 78b2a6b9730046c61c3d76c7cb7b7f195c695136 /Lib/importlib/abc.py | |
| parent | 7aa21f75c1d9ac36f1ab7e00aa9d0048ef61476d (diff) | |
| download | cpython-git-a113ac58be3ee73d1382af3bfbf47b7ed5e5f5a9.tar.gz | |
Implement InspectLoader for BuiltinImporter.
Diffstat (limited to 'Lib/importlib/abc.py')
| -rw-r--r-- | Lib/importlib/abc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index 6b00569ef1..c9c542ad1f 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -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): |
