diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:43:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:43:41 (GMT) |
commit | 148679982f851e2952b9d34e6ae7932f89650c1d (patch) | |
tree | 38a4387a2b29b3a3e0bea0944a0dfea2006ce340 /Lib | |
parent | 964feabd79633624f5865a0faac7f8f727b176ce (diff) | |
download | cpython-148679982f851e2952b9d34e6ae7932f89650c1d.zip cpython-148679982f851e2952b9d34e6ae7932f89650c1d.tar.gz cpython-148679982f851e2952b9d34e6ae7932f89650c1d.tar.bz2 |
Issue #22369: Change "context manager protocol" to "context management protocol".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/locks.py | 4 | ||||
-rw-r--r-- | Lib/mailbox.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index 574e361..b943e9d 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, diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 451f882..2eee76c 100644 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -1980,7 +1980,7 @@ class _ProxyFile: return result def __enter__(self): - """Context manager protocol support.""" + """Context management protocol support.""" return self def __exit__(self, *exc): |