mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46777: Fix incorrect use of directives in asyncio documentation (GH-31388)
This commit is contained in:
parent
d85121660e
commit
2923d87ca2
7 changed files with 83 additions and 182 deletions
|
@ -63,11 +63,8 @@ Lock
|
|||
finally:
|
||||
lock.release()
|
||||
|
||||
.. deprecated-removed:: 3.8 3.10
|
||||
The ``loop`` parameter. This class has been implicitly getting the
|
||||
current running loop since 3.7. See
|
||||
:ref:`What's New in 3.10's Removed section <whatsnew310-removed>`
|
||||
for more information.
|
||||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
.. coroutinemethod:: acquire()
|
||||
|
||||
|
@ -111,11 +108,8 @@ Event
|
|||
:meth:`clear` method. The :meth:`~Event.wait` method blocks until the
|
||||
flag is set to *true*. The flag is set to *false* initially.
|
||||
|
||||
.. deprecated-removed:: 3.8 3.10
|
||||
The ``loop`` parameter. This class has been implicitly getting the
|
||||
current running loop since 3.7. See
|
||||
:ref:`What's New in 3.10's Removed section <whatsnew310-removed>`
|
||||
for more information.
|
||||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
.. _asyncio_example_sync_event:
|
||||
|
||||
|
@ -189,11 +183,8 @@ Condition
|
|||
``None``. In the latter case a new Lock object is created
|
||||
automatically.
|
||||
|
||||
.. deprecated-removed:: 3.8 3.10
|
||||
The ``loop`` parameter. This class has been implicitly getting the
|
||||
current running loop since 3.7. See
|
||||
:ref:`What's New in 3.10's Removed section <whatsnew310-removed>`
|
||||
for more information.
|
||||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
The preferred way to use a Condition is an :keyword:`async with`
|
||||
statement::
|
||||
|
@ -291,11 +282,8 @@ Semaphore
|
|||
internal counter (``1`` by default). If the given value is
|
||||
less than ``0`` a :exc:`ValueError` is raised.
|
||||
|
||||
.. deprecated-removed:: 3.8 3.10
|
||||
The ``loop`` parameter. This class has been implicitly getting the
|
||||
current running loop since 3.7. See
|
||||
:ref:`What's New in 3.10's Removed section <whatsnew310-removed>`
|
||||
for more information.
|
||||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
The preferred way to use a Semaphore is an :keyword:`async with`
|
||||
statement::
|
||||
|
@ -349,12 +337,8 @@ BoundedSemaphore
|
|||
a :exc:`ValueError` in :meth:`~Semaphore.release` if it
|
||||
increases the internal counter above the initial *value*.
|
||||
|
||||
.. deprecated-removed:: 3.8 3.10
|
||||
|
||||
The ``loop`` parameter. This class has been implicitly getting the
|
||||
current running loop since 3.7. See
|
||||
:ref:`What's New in 3.10's Removed section <whatsnew310-removed>`
|
||||
for more information.
|
||||
.. versionchanged:: 3.10
|
||||
Removed the *loop* parameter.
|
||||
|
||||
---------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue