From: Hugo van Kemenade Date: Tue, 2 Jan 2024 12:59:42 +0000 (+0200) Subject: [3.12] gh-101100: Fix Sphinx warnings from removed `~!` references (GH-113629) (... X-Git-Tag: v3.12.2~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=764354590506067178e879e0d62143906f2b2d95;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-101100: Fix Sphinx warnings from removed `~!` references (GH-113629) (#113641) (cherry picked from commit 7595380347610598a3f5529214a449660892537b) Co-authored-by: Alex Waygood --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index b0695d31fb36..c2e590d88c25 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1860,7 +1860,7 @@ Standard Library (Contributed by Erlend E. Aasland in :issue:`5846`.) -* :meth:`~!unittest.TestProgram.usageExit` is marked deprecated, to be removed +* :meth:`!unittest.TestProgram.usageExit` is marked deprecated, to be removed in 3.13. (Contributed by Carlos Damázio in :gh:`67048`.) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 4f7b018bd4c4..cfa8d6df5bb0 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -2004,15 +2004,15 @@ importlib --------- Methods -:meth:`MetaPathFinder.find_module() ` +:meth:`!MetaPathFinder.find_module()` (replaced by :meth:`MetaPathFinder.find_spec() `) and -:meth:`PathEntryFinder.find_loader() ` +:meth:`!PathEntryFinder.find_loader()` (replaced by :meth:`PathEntryFinder.find_spec() `) both deprecated in Python 3.4 now emit :exc:`DeprecationWarning`. -(Contributed by Matthias Bussonnier in :issue:`29576`) +(Contributed by Matthias Bussonnier in :issue:`29576`.) The :class:`importlib.abc.ResourceLoader` ABC has been deprecated in favour of :class:`importlib.abc.ResourceReader`.