Docs: align usage of versionadded/versionchanged with recommended practice (#114409)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
This commit is contained in:
Erlend E. Aasland 2024-01-22 22:40:26 +01:00 committed by GitHub
parent 665b8f365e
commit 1d7bddd961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 172 additions and 173 deletions

View file

@ -705,11 +705,11 @@ Functions
meaning as in :meth:`ElementTree.write`. Returns an (optionally) encoded string
containing the XML data.
.. versionadded:: 3.4
The *short_empty_elements* parameter.
.. versionchanged:: 3.4
Added the *short_empty_elements* parameter.
.. versionadded:: 3.8
The *xml_declaration* and *default_namespace* parameters.
.. versionchanged:: 3.8
Added the *xml_declaration* and *default_namespace* parameters.
.. versionchanged:: 3.8
The :func:`tostring` function now preserves the attribute order
@ -732,11 +732,11 @@ Functions
.. versionadded:: 3.2
.. versionadded:: 3.4
The *short_empty_elements* parameter.
.. versionchanged:: 3.4
Added the *short_empty_elements* parameter.
.. versionadded:: 3.8
The *xml_declaration* and *default_namespace* parameters.
.. versionchanged:: 3.8
Added the *xml_declaration* and *default_namespace* parameters.
.. versionchanged:: 3.8
The :func:`tostringlist` function now preserves the attribute order
@ -858,8 +858,8 @@ Functions
this is a Unicode string. If the loader fails, it can return None or
raise an exception.
.. versionadded:: 3.9
The *base_url* and *max_depth* parameters.
.. versionchanged:: 3.9
Added the *base_url* and *max_depth* parameters.
.. _elementtree-element-objects:
@ -1189,8 +1189,8 @@ ElementTree Objects
:term:`file object`; make sure you do not try to write a string to a
binary stream and vice versa.
.. versionadded:: 3.4
The *short_empty_elements* parameter.
.. versionchanged:: 3.4
Added the *short_empty_elements* parameter.
.. versionchanged:: 3.8
The :meth:`write` method now preserves the attribute order specified