summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-12-29 01:55:27 (GMT)
committerBrett Cannon <brett@python.org>2015-12-29 01:55:27 (GMT)
commiteae30790417d7113599e21639815c1e00798b9ed (patch)
tree66225f7f506649fd256903f2319e4f9263adf42d /Doc/library/importlib.rst
parent53d1f24408efd8317c0ebea42cd42e1735d54310 (diff)
downloadcpython-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 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 02b0a11..d800835 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -921,6 +921,10 @@ find and load modules.
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
specifying the name of the module to load is optional.
+ .. deprecated:: 3.6
+
+ Use :meth:`importlib.abc.Loader.exec_module` instead.
+
.. class:: SourcelessFileLoader(fullname, path)
@@ -960,6 +964,10 @@ find and load modules.
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
specifying the name of the module to load is optional.
+ .. deprecated:: 3.6
+
+ Use :meth:`importlib.abc.Loader.exec_module` instead.
+
.. class:: ExtensionFileLoader(fullname, path)