Issue #25802: Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader.

They were the only remaining implementations of load_module() not
documented as deprecated.
This commit is contained in:
Brett Cannon 2015-12-28 17:55:27 -08:00
parent 53d1f24408
commit eae3079041
5 changed files with 1537 additions and 1519 deletions

View file

@ -655,6 +655,7 @@ class _LoaderBasics:
_bootstrap._call_with_frames_removed(exec, code, module.__dict__)
def load_module(self, fullname):
"""This module is deprecated."""
return _bootstrap._load_module_shim(self, fullname)