diff options
author | Brett Cannon <brett@python.org> | 2013-06-16 18:56:58 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-16 18:56:58 (GMT) |
commit | 13d8ff9c5bc6c957696e9e25e54a02fc077af1af (patch) | |
tree | e5fc52292423168a125f2aab800e4c12f66fe719 /Lib/importlib/abc.py | |
parent | 645ab68f25457b24f2dadfa3e6911cebac30d33e (diff) | |
download | cpython-13d8ff9c5bc6c957696e9e25e54a02fc077af1af.zip cpython-13d8ff9c5bc6c957696e9e25e54a02fc077af1af.tar.gz cpython-13d8ff9c5bc6c957696e9e25e54a02fc077af1af.tar.bz2 |
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.
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r-- | Lib/importlib/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index cf20e9f..b53a1a5 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -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): |