diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-01-25 04:56:30 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-01-25 04:56:30 (GMT) |
commit | 78246b6b457ea65cd33a71076a387d9127fe1a6d (patch) | |
tree | ecd83b5eaae87a03c75d330b6b10ec8f5d9719e2 /Lib | |
parent | 51d4aabf09fa0107a7263a45ad85ab3c0398390b (diff) | |
download | cpython-78246b6b457ea65cd33a71076a387d9127fe1a6d.zip cpython-78246b6b457ea65cd33a71076a387d9127fe1a6d.tar.gz cpython-78246b6b457ea65cd33a71076a387d9127fe1a6d.tar.bz2 |
Document both importlib.machinery.BuiltinImporter and FrozenImporter.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/NOTES | 6 | ||||
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/Lib/importlib/NOTES b/Lib/importlib/NOTES index 028f789..6d6464c 100644 --- a/Lib/importlib/NOTES +++ b/Lib/importlib/NOTES @@ -1,12 +1,6 @@ to do ///// -* Document: - - + The terms "importer", "finder", and "loader". - + machinery.BuiltinImporter. - + machinery.FrozenImporter. - * Expose resolve_name(). * Backport to Python 2.7. diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index d11513a..c1d09dd 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -110,8 +110,8 @@ class BuiltinImporter: return None return cls if imp.is_builtin(fullname) else None - @staticmethod - def load_module(fullname): + @classmethod + def load_module(cls, fullname): """Load a built-in module.""" if fullname not in sys.builtin_module_names: raise ImportError("{0} is not a built-in module".format(fullname)) |