diff options
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)) |