diff options
| author | Brett Cannon <brett@python.org> | 2015-12-29 01:55:27 (GMT) |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2015-12-29 01:55:27 (GMT) |
| commit | eae30790417d7113599e21639815c1e00798b9ed (patch) | |
| tree | 66225f7f506649fd256903f2319e4f9263adf42d /Lib/importlib/_bootstrap_external.py | |
| parent | 53d1f24408efd8317c0ebea42cd42e1735d54310 (diff) | |
| download | cpython-eae30790417d7113599e21639815c1e00798b9ed.zip cpython-eae30790417d7113599e21639815c1e00798b9ed.tar.gz cpython-eae30790417d7113599e21639815c1e00798b9ed.tar.bz2 | |
Issue #25802: Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader.
They were the only remaining implementations of load_module() not
documented as deprecated.
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
| -rw-r--r-- | Lib/importlib/_bootstrap_external.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index c58a62a..f274501 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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) |
