From b79e01248dceb398590b30532fca1a75727ce763 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Fri, 8 May 2015 14:13:41 +0300 Subject: [PATCH] Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine --- Doc/library/asyncio-sync.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 7925731807c..ad3b523f989 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. -