Skip to content

Commit b401acc

Browse files
hugovkAlexWaygood
authored andcommitted
pythongh-101100: Fix Sphinx warnings from removed ~! references (python#113629)
Co-authored-by: Alex Waygood <[email protected]>
1 parent 085419d commit b401acc

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

Doc/whatsnew/3.11.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ Standard Library
18601860

18611861
(Contributed by Erlend E. Aasland in :issue:`5846`.)
18621862

1863-
* :meth:`~!unittest.TestProgram.usageExit` is marked deprecated, to be removed
1863+
* :meth:`!unittest.TestProgram.usageExit` is marked deprecated, to be removed
18641864
in 3.13.
18651865
(Contributed by Carlos Damázio in :gh:`67048`.)
18661866

Doc/whatsnew/3.3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ their ``__init__`` method (for example, file objects) or in their
10521052
crypt
10531053
-----
10541054

1055-
Addition of salt and modular crypt format (hashing method) and the :func:`~!crypt.mksalt`
1055+
Addition of salt and modular crypt format (hashing method) and the :func:`!mksalt`
10561056
function to the :mod:`!crypt` module.
10571057

10581058
(:issue:`10924`)

Doc/whatsnew/3.4.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -605,15 +605,15 @@ Using ``ABC`` as a base class has essentially the same effect as specifying
605605
aifc
606606
----
607607

608-
The :meth:`~!aifc.aifc.getparams` method now returns a namedtuple rather than a
608+
The :meth:`!getparams` method now returns a namedtuple rather than a
609609
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
610610

611611
:func:`!aifc.open` now supports the context management protocol: when used in a
612-
:keyword:`with` block, the :meth:`~!aifc.aifc.close` method of the returned
612+
:keyword:`with` block, the :meth:`!close` method of the returned
613613
object will be called automatically at the end of the block. (Contributed by
614614
Serhiy Storchacha in :issue:`16486`.)
615615

616-
The :meth:`~!aifc.aifc.writeframesraw` and :meth:`~!aifc.aifc.writeframes`
616+
The :meth:`!writeframesraw` and :meth:`!writeframes`
617617
methods now accept any :term:`bytes-like object`. (Contributed by Serhiy
618618
Storchaka in :issue:`8311`.)
619619

@@ -632,7 +632,7 @@ audioop
632632
:mod:`!audioop` now supports 24-bit samples. (Contributed by Serhiy Storchaka
633633
in :issue:`12866`.)
634634

635-
New :func:`~!audioop.byteswap` function converts big-endian samples to
635+
New :func:`!byteswap` function converts big-endian samples to
636636
little-endian and vice versa. (Contributed by Serhiy Storchaka in
637637
:issue:`19641`.)
638638

@@ -1528,7 +1528,7 @@ work on Windows. This change was actually inadvertently made in 3.3.4.
15281528
sunau
15291529
-----
15301530

1531-
The :meth:`~!sunau.getparams` method now returns a namedtuple rather than a
1531+
The :meth:`!getparams` method now returns a namedtuple rather than a
15321532
plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
15331533

15341534
:meth:`!sunau.open` now supports the context management protocol: when used in a
@@ -1540,8 +1540,8 @@ in :issue:`18878`.)
15401540
support for writing 24 sample using the module. (Contributed by
15411541
Serhiy Storchaka in :issue:`19261`.)
15421542

1543-
The :meth:`~!sunau.AU_write.writeframesraw` and
1544-
:meth:`~!sunau.AU_write.writeframes` methods now accept any :term:`bytes-like
1543+
The :meth:`!writeframesraw` and
1544+
:meth:`!writeframes` methods now accept any :term:`bytes-like
15451545
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
15461546

15471547

Doc/whatsnew/3.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ Oberkirch in :issue:`21800`.)
12521252
imghdr
12531253
------
12541254

1255-
The :func:`~!imghdr.what` function now recognizes the
1255+
The :func:`!what` function now recognizes the
12561256
`OpenEXR <https://www.openexr.com>`_ format
12571257
(contributed by Martin Vignali and Claudiu Popa in :issue:`20295`),
12581258
and the `WebP <https://en.wikipedia.org/wiki/WebP>`_ format

Doc/whatsnew/3.7.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ crypt
851851
The :mod:`!crypt` module now supports the Blowfish hashing method.
852852
(Contributed by Serhiy Storchaka in :issue:`31664`.)
853853

854-
The :func:`~!crypt.mksalt` function now allows specifying the number of rounds
854+
The :func:`!mksalt` function now allows specifying the number of rounds
855855
for hashing. (Contributed by Serhiy Storchaka in :issue:`31702`.)
856856

857857

@@ -2004,15 +2004,15 @@ importlib
20042004
---------
20052005

20062006
Methods
2007-
:meth:`MetaPathFinder.find_module() <!importlib.abc.MetaPathFinder.find_module>`
2007+
:meth:`!MetaPathFinder.find_module()`
20082008
(replaced by
20092009
:meth:`MetaPathFinder.find_spec() <importlib.abc.MetaPathFinder.find_spec>`)
20102010
and
2011-
:meth:`PathEntryFinder.find_loader() <!importlib.abc.PathEntryFinder.find_loader>`
2011+
:meth:`!PathEntryFinder.find_loader()`
20122012
(replaced by
20132013
:meth:`PathEntryFinder.find_spec() <importlib.abc.PathEntryFinder.find_spec>`)
20142014
both deprecated in Python 3.4 now emit :exc:`DeprecationWarning`.
2015-
(Contributed by Matthias Bussonnier in :issue:`29576`)
2015+
(Contributed by Matthias Bussonnier in :issue:`29576`.)
20162016

20172017
The :class:`importlib.abc.ResourceLoader` ABC has been deprecated in
20182018
favour of :class:`importlib.abc.ResourceReader`.

Doc/whatsnew/3.9.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ queue.
585585
nntplib
586586
-------
587587

588-
:class:`~!nntplib.NNTP` and :class:`~!nntplib.NNTP_SSL` now raise a :class:`ValueError`
588+
:class:`!NNTP` and :class:`!NNTP_SSL` now raise a :class:`ValueError`
589589
if the given timeout for their constructor is zero to prevent the creation of
590590
a non-blocking socket. (Contributed by Donghee Na in :issue:`39259`.)
591591

Misc/NEWS.d/3.11.0a1.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -3483,9 +3483,9 @@ Improved reprs of :mod:`threading` synchronization objects:
34833483
Deprecated the following :mod:`unittest` functions, scheduled for removal in
34843484
Python 3.13:
34853485

3486-
* :func:`~!unittest.findTestCases`
3487-
* :func:`~!unittest.makeSuite`
3488-
* :func:`~!unittest.getTestCaseNames`
3486+
* :func:`!findTestCases`
3487+
* :func:`!makeSuite`
3488+
* :func:`!getTestCaseNames`
34893489

34903490
Use :class:`~unittest.TestLoader` methods instead:
34913491

Misc/NEWS.d/3.11.0a7.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,8 @@ Add optional parameter *dir_fd* in :func:`shutil.rmtree`.
10381038
.. nonce: AixHW7
10391039
.. section: Library
10401040
1041-
:meth:`~!unittest.TestProgram.usageExit` is marked deprecated, to be removed
1042-
in 3.13.
1041+
:meth:`!unittest.TestProgram.usageExit` is marked as deprecated,
1042+
to be removed in Python 3.13.
10431043

10441044
..
10451045

Misc/NEWS.d/3.9.0a3.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ resilients to inaccessible sys.path entries (importlib_metadata v1.4.0).
454454
.. nonce: _S5VjC
455455
.. section: Library
456456
457-
:class:`~!nntplib.NNTP` and :class:`~!nntplib.NNTP_SSL` now raise a
457+
:class:`!NNTP` and :class:`!NNTP_SSL` now raise a
458458
:class:`ValueError` if the given timeout for their constructor is zero to
459459
prevent the creation of a non-blocking socket. Patch by Donghee Na.
460460

@@ -498,7 +498,7 @@ prevent the creation of a non-blocking socket. Patch by Donghee Na.
498498
.. section: Library
499499
500500
Updated the Gmane domain from news.gmane.org to news.gmane.io which is used
501-
for examples of :class:`~!nntplib.NNTP` news reader server and nntplib tests.
501+
for examples of :class:`!NNTP` news reader server and nntplib tests.
502502

503503
..
504504

0 commit comments

Comments
 (0)