summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2015-05-08 11:13:41 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2015-05-08 11:13:41 (GMT)
commitb79e01248dceb398590b30532fca1a75727ce763 (patch)
tree6bc6cf672805110ffcbdc0166b4031bd0065a7f8
parent9e77f72fb2b247d7024e37a106ed2791bb7298d7 (diff)
downloadcpython-b79e01248dceb398590b30532fca1a75727ce763.zip
cpython-b79e01248dceb398590b30532fca1a75727ce763.tar.gz
cpython-b79e01248dceb398590b30532fca1a75727ce763.tar.bz2
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
-rw-r--r--Doc/library/asyncio-sync.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 7925731..ad3b523 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -275,7 +275,7 @@ Semaphore
Returns ``True`` if semaphore can not be acquired immediately.
- .. coroutinemethod:: release()
+ .. method:: release()
Release a semaphore, incrementing the internal counter by one. When it
was zero on entry and another coroutine is waiting for it to become
@@ -291,4 +291,3 @@ BoundedSemaphore
This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would
increase the value above the initial value.
-