mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533)
This commit is contained in:
parent
abb9a448de
commit
90d9ba6ef1
6 changed files with 50 additions and 223 deletions
|
@ -347,8 +347,8 @@ BoundedSemaphore
|
|||
---------
|
||||
|
||||
|
||||
.. deprecated:: 3.7
|
||||
.. versionchanged:: 3.9
|
||||
|
||||
Acquiring a lock using ``await lock`` or ``yield from lock`` and/or
|
||||
:keyword:`with` statement (``with await lock``, ``with (yield from
|
||||
lock)``) is deprecated. Use ``async with lock`` instead.
|
||||
lock)``) was removed. Use ``async with lock`` instead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue