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/importlib/_bootstrap.py | |
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/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |