File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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 ` .)
Original file line number Diff line number Diff 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 `,
Original file line number Diff line number Diff line change @@ -2006,10 +2006,10 @@ deprecated.
20062006importlib
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
20112011are 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
20132013been deprecated in previous versions of Python in favour of
20142014:meth: `importlib.abc.Loader.exec_module `.
20152015
You can’t perform that action at this time.
0 commit comments