From: Andrew Svetlov Date: Fri, 8 May 2015 11:13:41 +0000 (+0300) Subject: Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine X-Git-Tag: v3.5.0b1~227^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b79e01248dceb398590b30532fca1a75727ce763;p=thirdparty%2FPython%2Fcpython.git Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine --- diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 7925731807c7..ad3b523f989b 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. -