mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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:
parent
53d1f24408
commit
eae3079041
5 changed files with 1537 additions and 1519 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue