Skip to content

Commit

Permalink
gh-115777: Fix double versionadded directives (GH-116269)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Mar 5, 2024
1 parent 23db9c6 commit 0064dfa
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ Opening network connections
Added support for Windows.

.. versionchanged:: 3.11
The *reuse_address* parameter, disabled since Python 3.9.0, 3.8.1,
The *reuse_address* parameter, disabled since Python 3.8.1,
3.7.6 and 3.6.10, has been entirely removed.

.. coroutinemethod:: loop.create_unix_connection(protocol_factory, \
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/audit_events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Audit events table

This table contains all events raised by :func:`sys.audit` or
:c:func:`PySys_Audit` calls throughout the CPython runtime and the
standard library. These calls were added in 3.8.0 or later (see :pep:`578`).
standard library. These calls were added in 3.8 or later (see :pep:`578`).

See :func:`sys.addaudithook` and :c:func:`PySys_AddAuditHook` for
information on handling these events.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ are also included in the pure Python version for compatibility.
the C version uses a thread-local rather than a coroutine-local context and the value
is ``False``. This is slightly faster in some nested context scenarios.

.. versionadded:: 3.9 backported to 3.7 and 3.8.
.. versionadded:: 3.8.3


Rounding modes
Expand Down
12 changes: 1 addition & 11 deletions Doc/library/ipaddress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,12 @@ write code that handles both IP versions correctly. Address objects are
Leading zeros are tolerated, even in ambiguous cases that look like
octal notation.

.. versionchanged:: 3.10
.. versionchanged:: 3.9.5

Leading zeros are no longer tolerated and are treated as an error.
IPv4 address strings are now parsed as strict as glibc
:func:`~socket.inet_pton`.

.. versionchanged:: 3.9.5

The above change was also included in Python 3.9 starting with
version 3.9.5.

.. versionchanged:: 3.8.12

The above change was also included in Python 3.8 starting with
version 3.8.12.

.. attribute:: version

The appropriate version number: ``4`` for IPv4, ``6`` for IPv6.
Expand Down
6 changes: 3 additions & 3 deletions Doc/library/ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,11 @@ Constants
When Python has been compiled against an older version of OpenSSL, the
flag defaults to *0*.

.. versionadded:: 3.7
.. versionadded:: 3.6.3

.. deprecated:: 3.7
The option is deprecated since OpenSSL 1.1.0. It was added to 2.7.15,
3.6.3 and 3.7.0 for backwards compatibility with OpenSSL 1.0.2.
The option is deprecated since OpenSSL 1.1.0. It was added to 2.7.15 and
3.6.3 for backwards compatibility with OpenSSL 1.0.2.

.. data:: OP_NO_RENEGOTIATION

Expand Down
8 changes: 1 addition & 7 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,6 @@ using ``[]``.
be used for this concept instead. Type checkers should treat the two
equivalently.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.2

.. data:: Self
Expand Down Expand Up @@ -3292,7 +3291,6 @@ Aliases to types in :mod:`collections`

Deprecated alias to :class:`collections.ChainMap`.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.1

.. deprecated:: 3.9
Expand All @@ -3303,7 +3301,6 @@ Aliases to types in :mod:`collections`

Deprecated alias to :class:`collections.Counter`.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.1

.. deprecated:: 3.9
Expand All @@ -3314,7 +3311,6 @@ Aliases to types in :mod:`collections`

Deprecated alias to :class:`collections.deque`.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.1

.. deprecated:: 3.9
Expand Down Expand Up @@ -3389,7 +3385,7 @@ Aliases to container ABCs in :mod:`collections.abc`

Deprecated alias to :class:`collections.abc.Collection`.

.. versionadded:: 3.6.0
.. versionadded:: 3.6

.. deprecated:: 3.9
:class:`collections.abc.Collection` now supports subscripting (``[]``).
Expand Down Expand Up @@ -3681,7 +3677,6 @@ Aliases to :mod:`contextlib` ABCs
Deprecated alias to :class:`contextlib.AbstractContextManager`.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.0

.. deprecated:: 3.9
:class:`contextlib.AbstractContextManager`
Expand All @@ -3692,7 +3687,6 @@ Aliases to :mod:`contextlib` ABCs

Deprecated alias to :class:`contextlib.AbstractAsyncContextManager`.

.. versionadded:: 3.5.4
.. versionadded:: 3.6.2

.. deprecated:: 3.9
Expand Down

0 comments on commit 0064dfa

Please sign in to comment.