Skip to content

Commit 61063cc

Browse files
committed
Fix a couple of versionadded/versionchanged related markup errors.
1 parent f551001 commit 61063cc

16 files changed

+39
-32
lines changed

Doc/c-api/arg.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ Numbers
264264
Convert a Python byte, represented as a :class:`bytes` or
265265
:class:`bytearray` object of length 1, to a C :c:type:`char`.
266266

267-
.. versionchanged:: 3.3 Allow :class:`bytearray` objects
267+
.. versionchanged:: 3.3
268+
Allow :class:`bytearray` objects.
268269

269270
``C`` (:class:`str` of length 1) [int]
270271
Convert a Python character, represented as a :class:`str` object of
@@ -324,7 +325,7 @@ Other objects
324325
This accepts any valid Python value. See :ref:`truth` for more
325326
information about how Python tests values for truth.
326327

327-
.. versionchanged:: 3.3
328+
.. versionadded:: 3.3
328329

329330
``(items)`` (:class:`tuple`) [*matching-items*]
330331
The object must be a Python sequence whose length is the number of format units

Doc/library/abc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ The :mod:`abc` module also provides the following decorators:
217217

218218
.. versionadded:: 3.2
219219
.. deprecated:: 3.3
220-
Use :class:`classmethod` with :func:`abstractmethod` instead
220+
Use :class:`classmethod` with :func:`abstractmethod` instead.
221221

222222

223223
.. decorator:: abstractstaticmethod(function)
@@ -234,7 +234,7 @@ The :mod:`abc` module also provides the following decorators:
234234

235235
.. versionadded:: 3.2
236236
.. deprecated:: 3.3
237-
Use :class:`staticmethod` with :func:`abstractmethod` instead
237+
Use :class:`staticmethod` with :func:`abstractmethod` instead.
238238

239239

240240
.. decorator:: abstractproperty(fget=None, fset=None, fdel=None, doc=None)

Doc/library/email.errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ this class is *not* an exception!
7676
* :class:`CloseBoundaryNotFoundDefect` -- A start boundary was found, but
7777
no corresponding close boundary was ever found.
7878

79-
.. versionadded: 3.3
79+
.. versionadded:: 3.3
8080

8181
* :class:`FirstHeaderLineIsContinuationDefect` -- The message had a continuation
8282
line as its first header line.
@@ -88,7 +88,7 @@ this class is *not* an exception!
8888
headers that had no leading white space but contained no ':'. Parsing
8989
continues assuming that the line represents the first line of the body.
9090

91-
.. versionadded: 3.3
91+
.. versionadded:: 3.3
9292

9393
* :class:`MalformedHeaderDefect` -- A header was found that was missing a colon,
9494
or was otherwise malformed.

Doc/library/email.parser.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ can be much faster in these situations, since they do not attempt to parse the
107107
message body, instead setting the payload to the raw body as a string. They
108108
have the same API as the :class:`Parser` and :class:`BytesParser` classes.
109109

110-
.. versionadded:: 3.3 BytesHeaderParser
110+
.. versionadded:: 3.3
111+
The BytesHeaderParser class.
111112

112113

113114
.. class:: Parser(_class=email.message.Message, *, policy=policy.default)

Doc/library/email.util.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ There are several useful utilities provided in the :mod:`email.utils` module:
4141
characters. Can be an instance of :class:`str` or a
4242
:class:`~email.charset.Charset`. Defaults to ``utf-8``.
4343

44-
.. versionchanged: 3.3 added the *charset* option
44+
.. versionchanged:: 3.3
45+
Added the *charset* option.
4546

4647

4748
.. function:: getaddresses(fieldvalues)
@@ -93,6 +94,8 @@ There are several useful utilities provided in the :mod:`email.utils` module:
9394
corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`.
9495

9596
.. versionadded:: 3.3
97+
98+
9699
.. function:: mktime_tz(tuple)
97100

98101
Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp. It
@@ -164,7 +167,8 @@ There are several useful utilities provided in the :mod:`email.utils` module:
164167
may be useful certain cases, such as a constructing distributed system that
165168
uses a consistent domain name across multiple hosts.
166169

167-
.. versionchanged:: 3.2 domain keyword added
170+
.. versionchanged:: 3.2
171+
Added the *domain* keyword.
168172

169173

170174
.. function:: decode_rfc2231(s)

Doc/library/html.parser.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML.
3333
This parser does not check that end tags match start tags or call the end-tag
3434
handler for elements which are closed implicitly by closing an outer element.
3535

36-
.. versionchanged:: 3.2 *strict* keyword added
36+
.. versionchanged:: 3.2
37+
*strict* keyword added.
3738

3839
.. deprecated-removed:: 3.3 3.5
3940
The *strict* argument and the strict mode have been deprecated.

Doc/library/http.server.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ of which this module provides three different variants:
201201
specifying its value. Note that, after the send_header calls are done,
202202
:meth:`end_headers` MUST BE called in order to complete the operation.
203203

204-
.. versionchanged:: 3.2 Headers are stored in an internal buffer.
204+
.. versionchanged:: 3.2
205+
Headers are stored in an internal buffer.
205206

206207

207208
.. method:: send_response_only(code, message=None)

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ an :term:`importer`.
785785
loader should initialize as specified by :pep:`302` as best as possible.
786786

787787
.. versionchanged:: 3.3
788-
:attr:`__loader__` and :attr:`__package__` are automatically set
789-
(when possible).
788+
:attr:`__loader__` and :attr:`__package__` are automatically set
789+
(when possible).
790790

791791
.. decorator:: set_loader
792792

Doc/library/mailbox.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ Maildir, mbox, MH, Babyl, and MMDF.
8989
format-specific information is used. Otherwise, reasonable defaults for
9090
format-specific information are used.
9191

92-
.. versionchanged:: 3.2 support for binary input
92+
.. versionchanged:: 3.2
93+
Support for binary input was added.
9394

9495

9596
.. method:: remove(key)

Doc/library/os.path.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ applications should use string objects to access all files.
254254

255255
Availability: Unix, Windows.
256256

257-
.. versionchanged:: 3.2 Added Windows support.
257+
.. versionchanged:: 3.2
258+
Added Windows support.
258259

259260

260261
.. function:: samestat(stat1, stat2)

0 commit comments

Comments
 (0)