summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-25 04:56:30 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-01-25 04:56:30 (GMT)
commit78246b6b457ea65cd33a71076a387d9127fe1a6d (patch)
treeecd83b5eaae87a03c75d330b6b10ec8f5d9719e2 /Lib/importlib/_bootstrap.py
parent51d4aabf09fa0107a7263a45ad85ab3c0398390b (diff)
downloadcpython-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.py4
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))