diff options
Diffstat (limited to 'Lib/importlib/_abc.py')
-rw-r--r-- | Lib/importlib/_abc.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/importlib/_abc.py b/Lib/importlib/_abc.py index f80348fc7ff..08320563896 100644 --- a/Lib/importlib/_abc.py +++ b/Lib/importlib/_abc.py @@ -38,17 +38,3 @@ class Loader(metaclass=abc.ABCMeta): raise ImportError # Warning implemented in _load_module_shim(). return _bootstrap._load_module_shim(self, fullname) - - def module_repr(self, module): - """Return a module's repr. - - Used by the module type when the method does not raise - NotImplementedError. - - This method is deprecated. - - """ - warnings.warn("importlib.abc.Loader.module_repr() is deprecated and " - "slated for removal in Python 3.12", DeprecationWarning) - # The exception will cause ModuleType.__repr__ to ignore this method. - raise NotImplementedError |