[Python-checkins] cpython (3.4): Fix doc: asyncio.Semaphore.release() actually is a regular function, not
andrew.svetlov
python-checkins at python.org
Fri May 8 13:15:23 CEST 2015
https://hg.python.org/cpython/rev/7eb524cbe6e5
changeset: 95911:7eb524cbe6e5
branch: 3.4
parent: 95908:1556f2804456
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Fri May 08 14:13:41 2015 +0300
summary:
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
files:
Doc/library/asyncio-sync.rst | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -275,7 +275,7 @@
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 @@
This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would
increase the value above the initial value.
-
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list