Skip to content

Commit ba2f2ca

Browse files
[3.11] gh-101100: Fix Sphinx warnings in whatsnew/3.1.rst (GH-115575) (#115588)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 7de9cae commit ba2f2ca

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ Doc/whatsnew/2.5.rst
9191
Doc/whatsnew/2.6.rst
9292
Doc/whatsnew/2.7.rst
9393
Doc/whatsnew/3.0.rst
94-
Doc/whatsnew/3.1.rst
9594
Doc/whatsnew/3.2.rst
9695
Doc/whatsnew/3.3.rst
9796
Doc/whatsnew/3.4.rst

Doc/whatsnew/3.1.rst

Lines changed: 13 additions & 9 deletions
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)