File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class Lock:
63
63
64
64
acquire() is a coroutine and should be called with 'yield from'.
65
65
66
- Locks also support the context manager protocol. '(yield from lock)'
66
+ Locks also support the context management protocol. '(yield from lock)'
67
67
should be used as context manager expression.
68
68
69
69
Usage:
@@ -376,7 +376,7 @@ class Semaphore:
376
376
can never go below zero; when acquire() finds that it is zero, it blocks,
377
377
waiting until some other thread calls release().
378
378
379
- Semaphores also support the context manager protocol.
379
+ Semaphores also support the context management protocol.
380
380
381
381
The optional argument gives the initial value for the internal
382
382
counter; it defaults to 1. If the value given is less than 0,
You can’t perform that action at this time.
0 commit comments