Skip to content

Commit 61f2085

Browse files
[3.11] gh-115664: Fix chronological ordering of versionadded and versionchanged directives (GH-115676) (#115681)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
1 parent f10ce9f commit 61f2085

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

Doc/library/codecs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,13 +1542,13 @@ This module implements the ANSI codepage (CP_ACP).
15421542

15431543
.. availability:: Windows.
15441544

1545-
.. versionchanged:: 3.3
1546-
Support any error handler.
1547-
15481545
.. versionchanged:: 3.2
15491546
Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used
15501547
to encode, and ``'ignore'`` to decode.
15511548

1549+
.. versionchanged:: 3.3
1550+
Support any error handler.
1551+
15521552

15531553
:mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature
15541554
-------------------------------------------------------------

Doc/library/math.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ Constants
666666
>>> math.isnan(float('nan'))
667667
True
668668

669+
.. versionadded:: 3.5
670+
669671
.. versionchanged:: 3.11
670672
It is now always available.
671673

672-
.. versionadded:: 3.5
673-
674674

675675
.. impl-detail::
676676

Doc/library/shutil.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,16 @@ Directory and files operations
274274

275275
.. audit-event:: shutil.copytree src,dst shutil.copytree
276276

277-
.. versionchanged:: 3.3
278-
Copy metadata when *symlinks* is false.
279-
Now returns *dst*.
280-
281277
.. versionchanged:: 3.2
282278
Added the *copy_function* argument to be able to provide a custom copy
283279
function.
284280
Added the *ignore_dangling_symlinks* argument to silence dangling symlinks
285281
errors when *symlinks* is false.
286282

283+
.. versionchanged:: 3.3
284+
Copy metadata when *symlinks* is false.
285+
Now returns *dst*.
286+
287287
.. versionchanged:: 3.8
288288
Platform-specific fast-copy syscalls may be used internally in order to
289289
copy the file more efficiently. See

Doc/library/sys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ always available.
1616
On POSIX systems where Python was built with the standard ``configure``
1717
script, this contains the ABI flags as specified by :pep:`3149`.
1818

19+
.. versionadded:: 3.2
20+
1921
.. versionchanged:: 3.8
2022
Default flags became an empty string (``m`` flag for pymalloc has been
2123
removed).
2224

23-
.. versionadded:: 3.2
24-
2525

2626
.. function:: addaudithook(hook)
2727

Doc/library/venv.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,6 @@ creation according to their needs, the :class:`EnvBuilder` class.
276276
the virtual environment.
277277

278278

279-
.. versionchanged:: 3.12
280-
The attribute ``lib_path`` was added to the context, and the context
281-
object was documented.
282-
283279
.. versionchanged:: 3.11
284280
The *venv*
285281
:ref:`sysconfig installation scheme <installation_paths>`

Doc/using/venv-create.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ used at environment creation time). It also creates an (initially empty)
1414
``Lib\site-packages``). If an existing directory is specified, it will be
1515
re-used.
1616
17+
.. versionchanged:: 3.5
18+
The use of ``venv`` is now recommended for creating virtual environments.
19+
1720
.. deprecated:: 3.6
1821
``pyvenv`` was the recommended tool for creating virtual environments for
1922
Python 3.3 and 3.4, and is
2023
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
2124
22-
.. versionchanged:: 3.5
23-
The use of ``venv`` is now recommended for creating virtual environments.
24-
2525
.. highlight:: none
2626
2727
On Windows, invoke the ``venv`` command as follows::

0 commit comments

Comments
 (0)