]> granicus.if.org Git - python/commitdiff
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 8 May 2015 11:13:41 +0000 (14:13 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 8 May 2015 11:13:41 +0000 (14:13 +0300)
Doc/library/asyncio-sync.rst

index 7925731807c72cd6996682fda5bdf87441f757a9..ad3b523f989b9758d00f24016dc2fb43c029f35e 100644 (file)
@@ -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.
-