Skip to content

Commit ebf8eb2

Browse files
[3.12] gh-101100: Fix Sphinx warnings in whatsnew/3.1.rst (GH-115575) (#115587)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent d08d5b6 commit ebf8eb2

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ Doc/whatsnew/2.5.rst
104104
Doc/whatsnew/2.6.rst
105105
Doc/whatsnew/2.7.rst
106106
Doc/whatsnew/3.0.rst
107-
Doc/whatsnew/3.1.rst
108107
Doc/whatsnew/3.2.rst
109108
Doc/whatsnew/3.3.rst
110109
Doc/whatsnew/3.4.rst

Doc/whatsnew/3.1.rst

+13-9
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Support was also added for third-party tools like `PyYAML <https://pyyaml.org/>`
8181
written by Raymond Hettinger.
8282

8383
Since an ordered dictionary remembers its insertion order, it can be used
84-
in conjuction with sorting to make a sorted dictionary::
84+
in conjunction with sorting to make a sorted dictionary::
8585

8686
>>> # regular unsorted dictionary
8787
>>> d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}
@@ -174,7 +174,7 @@ Some smaller changes made to the core Python language are:
174174

175175
(Contributed by Eric Smith; :issue:`5237`.)
176176

177-
* The :func:`string.maketrans` function is deprecated and is replaced by new
177+
* The :func:`!string.maketrans` function is deprecated and is replaced by new
178178
static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`.
179179
This change solves the confusion around which types were supported by the
180180
:mod:`string` module. Now, :class:`str`, :class:`bytes`, and
@@ -381,16 +381,20 @@ New, Improved, and Deprecated Modules
381381
x / 0
382382

383383
In addition, several new assertion methods were added including
384-
:func:`assertSetEqual`, :func:`assertDictEqual`,
385-
:func:`assertDictContainsSubset`, :func:`assertListEqual`,
386-
:func:`assertTupleEqual`, :func:`assertSequenceEqual`,
387-
:func:`assertRaisesRegexp`, :func:`assertIsNone`,
388-
and :func:`assertIsNotNone`.
384+
:meth:`~unittest.TestCase.assertSetEqual`,
385+
:meth:`~unittest.TestCase.assertDictEqual`,
386+
:meth:`!assertDictContainsSubset`,
387+
:meth:`~unittest.TestCase.assertListEqual`,
388+
:meth:`~unittest.TestCase.assertTupleEqual`,
389+
:meth:`~unittest.TestCase.assertSequenceEqual`,
390+
:meth:`assertRaisesRegexp() <unittest.TestCase.assertRaisesRegex>`,
391+
:meth:`~unittest.TestCase.assertIsNone`,
392+
and :meth:`~unittest.TestCase.assertIsNotNone`.
389393

390394
(Contributed by Benjamin Peterson and Antoine Pitrou.)
391395

392-
* The :mod:`io` module has three new constants for the :meth:`seek`
393-
method :data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`.
396+
* The :mod:`io` module has three new constants for the :meth:`~io.IOBase.seek`
397+
method: :data:`~os.SEEK_SET`, :data:`~os.SEEK_CUR`, and :data:`~os.SEEK_END`.
394398

395399
* The :data:`sys.version_info` tuple is now a named tuple::
396400

0 commit comments

Comments
 (0)