Skip to content

Commit 446daa0

Browse files
committed
Python issue #22369: Change "context manager protocol" to "context management protocol".
Patch written by Serhiy Storchaka <[email protected]>.
1 parent eeeef36 commit 446daa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asyncio/locks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Lock:
6363
6464
acquire() is a coroutine and should be called with 'yield from'.
6565
66-
Locks also support the context manager protocol. '(yield from lock)'
66+
Locks also support the context management protocol. '(yield from lock)'
6767
should be used as context manager expression.
6868
6969
Usage:
@@ -376,7 +376,7 @@ class Semaphore:
376376
can never go below zero; when acquire() finds that it is zero, it blocks,
377377
waiting until some other thread calls release().
378378
379-
Semaphores also support the context manager protocol.
379+
Semaphores also support the context management protocol.
380380
381381
The optional argument gives the initial value for the internal
382382
counter; it defaults to 1. If the value given is less than 0,

0 commit comments

Comments
 (0)