summaryrefslogtreecommitdiff
path: root/Doc/library/asyncio-sync.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-10 23:43:41 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-10 23:43:41 +0300
commit8645a93783a76b46ea86f4a5cb875a4f022b7467 (patch)
tree45247b24e6567ad9dadcf2dc5318a9ab234f3909 /Doc/library/asyncio-sync.rst
parent3319792fa12c91bd19d5f91ec45fc4ad9ccb373a (diff)
downloadcpython-8645a93783a76b46ea86f4a5cb875a4f022b7467.tar.gz
Issue #22369: Change "context manager protocol" to "context management protocol".
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r--Doc/library/asyncio-sync.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 049a0cc5c4..cc80bd79b4 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -34,7 +34,7 @@ Lock
:meth:`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::
@@ -229,7 +229,7 @@ Semaphore
counter can never go below zero; when :meth:`acquire` finds that it is zero,
it blocks, waiting until some other thread calls :meth:`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``, :exc:`ValueError`