From 148679982f851e2952b9d34e6ae7932f89650c1d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 10 Sep 2014 23:43:41 +0300 Subject: Issue #22369: Change "context manager protocol" to "context management protocol". --- Lib/asyncio/locks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/asyncio/locks.py') diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index 574e3618f27..b943e9dd4f9 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -63,7 +63,7 @@ class Lock: acquire() is a coroutine and should be called with 'yield from'. - Locks also support the context manager protocol. '(yield from lock)' + Locks also support the context management protocol. '(yield from lock)' should be used as context manager expression. Usage: @@ -376,7 +376,7 @@ class Semaphore: can never go below zero; when acquire() finds that it is zero, it blocks, waiting until some other thread calls release(). - Semaphores also support the context manager protocol. + Semaphores also support the context management protocol. The optional argument gives the initial value for the internal counter; it defaults to 1. If the value given is less than 0, -- cgit v1.2.3