summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-02-17 09:39:07 (GMT)
committerGitHub <noreply@github.com>2024-02-17 09:39:07 (GMT)
commit30fce5f228b7e2e8fd92f07113ac5632e6baf3b2 (patch)
tree438b4a9b70b70e7da21cb48aff6d09a046570ce5 /Doc
parent9fd420f53d1b1087d2ae648b0efc44107d27d867 (diff)
downloadcpython-30fce5f228b7e2e8fd92f07113ac5632e6baf3b2.zip
cpython-30fce5f228b7e2e8fd92f07113ac5632e6baf3b2.tar.gz
cpython-30fce5f228b7e2e8fd92f07113ac5632e6baf3b2.tar.bz2
gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (#115575)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tools/.nitignore1
-rw-r--r--Doc/whatsnew/3.1.rst22
2 files changed, 13 insertions, 10 deletions
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore
index 33129e8..6128578 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -86,7 +86,6 @@ Doc/whatsnew/2.5.rst
Doc/whatsnew/2.6.rst
Doc/whatsnew/2.7.rst
Doc/whatsnew/3.0.rst
-Doc/whatsnew/3.1.rst
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.4.rst
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst
index b7dd8f2..69b273e 100644
--- a/Doc/whatsnew/3.1.rst
+++ b/Doc/whatsnew/3.1.rst
@@ -81,7 +81,7 @@ Support was also added for third-party tools like `PyYAML <https://pyyaml.org/>`
written by Raymond Hettinger.
Since an ordered dictionary remembers its insertion order, it can be used
-in conjuction with sorting to make a sorted dictionary::
+in conjunction with sorting to make a sorted dictionary::
>>> # regular unsorted dictionary
>>> d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}
@@ -174,7 +174,7 @@ Some smaller changes made to the core Python language are:
(Contributed by Eric Smith; :issue:`5237`.)
-* The :func:`string.maketrans` function is deprecated and is replaced by new
+* The :func:`!string.maketrans` function is deprecated and is replaced by new
static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`.
This change solves the confusion around which types were supported by the
:mod:`string` module. Now, :class:`str`, :class:`bytes`, and
@@ -381,16 +381,20 @@ New, Improved, and Deprecated Modules
x / 0
In addition, several new assertion methods were added including
- :func:`assertSetEqual`, :func:`assertDictEqual`,
- :func:`assertDictContainsSubset`, :func:`assertListEqual`,
- :func:`assertTupleEqual`, :func:`assertSequenceEqual`,
- :func:`assertRaisesRegexp`, :func:`assertIsNone`,
- and :func:`assertIsNotNone`.
+ :meth:`~unittest.TestCase.assertSetEqual`,
+ :meth:`~unittest.TestCase.assertDictEqual`,
+ :meth:`!assertDictContainsSubset`,
+ :meth:`~unittest.TestCase.assertListEqual`,
+ :meth:`~unittest.TestCase.assertTupleEqual`,
+ :meth:`~unittest.TestCase.assertSequenceEqual`,
+ :meth:`assertRaisesRegexp() <unittest.TestCase.assertRaisesRegex>`,
+ :meth:`~unittest.TestCase.assertIsNone`,
+ and :meth:`~unittest.TestCase.assertIsNotNone`.
(Contributed by Benjamin Peterson and Antoine Pitrou.)
-* The :mod:`io` module has three new constants for the :meth:`seek`
- method :data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`.
+* The :mod:`io` module has three new constants for the :meth:`~io.IOBase.seek`
+ method: :data:`~os.SEEK_SET`, :data:`~os.SEEK_CUR`, and :data:`~os.SEEK_END`.
* The :data:`sys.version_info` tuple is now a named tuple::