Skip to content

Commit e256f38

Browse files
committed
Remove references to load_module() from What's New
1 parent d70a7fb commit e256f38

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ Deprecated
16221622
compatibility. Specifically,
16231623
:meth:`!find_loader`/:meth:`!find_module`
16241624
(superseded by :meth:`~importlib.abc.MetaPathFinder.find_spec`),
1625-
:meth:`~importlib.abc.Loader.load_module`
1625+
``importlib.abc.Loader.load_module``
16261626
(superseded by :meth:`~importlib.abc.Loader.exec_module`),
16271627
:meth:`!module_repr` (which the import system
16281628
takes care of for you), the ``__package__`` attribute
@@ -1652,7 +1652,7 @@ Deprecated
16521652
preference for :meth:`~zipimport.zipimporter.exec_module`.
16531653
(Contributed by Brett Cannon in :issue:`26131`.)
16541654
1655-
* The use of :meth:`~importlib.abc.Loader.load_module` by the import
1655+
* The use of ``importlib.abc.Loader.load_module`` by the import
16561656
system now triggers an :exc:`ImportWarning` as
16571657
:meth:`~importlib.abc.Loader.exec_module` is preferred.
16581658
(Contributed by Brett Cannon in :issue:`26131`.)

Doc/whatsnew/3.4.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,10 +2086,10 @@ Deprecations in the Python API
20862086
:meth:`!importlib.abc.PathEntryFinder.find_loader` and
20872087
:meth:`!find_module` are replaced by
20882088
:meth:`importlib.abc.PathEntryFinder.find_spec`; all of the :samp:`{xxx}Loader` ABC
2089-
``load_module`` methods (:meth:`!importlib.abc.Loader.load_module`,
2090-
:meth:`!importlib.abc.InspectLoader.load_module`,
2091-
:meth:`!importlib.abc.FileLoader.load_module`,
2092-
:meth:`!importlib.abc.SourceLoader.load_module`) should no longer be
2089+
``load_module`` methods (``importlib.abc.Loader.load_module``,
2090+
``importlib.abc.InspectLoader.load_module``,
2091+
``importlib.abc.FileLoader.load_module``,
2092+
``importlib.abc.SourceLoader.load_module``) should no longer be
20932093
implemented, instead loaders should implement an
20942094
``exec_module`` method
20952095
(:meth:`importlib.abc.Loader.exec_module`,

Doc/whatsnew/3.6.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,10 +2006,10 @@ deprecated.
20062006
importlib
20072007
~~~~~~~~~
20082008

2009-
The :meth:`importlib.machinery.SourceFileLoader.load_module` and
2010-
:meth:`importlib.machinery.SourcelessFileLoader.load_module` methods
2009+
The ``importlib.machinery.SourceFileLoader.load_module`` and
2010+
``importlib.machinery.SourcelessFileLoader.load_module`` methods
20112011
are now deprecated. They were the only remaining implementations of
2012-
:meth:`importlib.abc.Loader.load_module` in :mod:`importlib` that had not
2012+
``importlib.abc.Loader.load_module`` in :mod:`importlib` that had not
20132013
been deprecated in previous versions of Python in favour of
20142014
:meth:`importlib.abc.Loader.exec_module`.
20152015

0 commit comments

Comments
 (0)