From 828946e561389105b27cd7e00b4ab0f5e8caa03a Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 6 May 2015 20:19:06 -0500 Subject: [PATCH 1/2] Fix copy/paste errors. Basically, s/thread/coroutine/. --- Doc/library/asyncio-sync.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 622ff5fd66d..7925731807c 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -196,9 +196,9 @@ Condition .. method:: notify_all() - Wake up all threads waiting on this condition. This method acts like - :meth:`notify`, but wakes up all waiting threads instead of one. If the - calling thread has not acquired the lock when this method is called, a + Wake up all coroutines waiting on this condition. This method acts like + :meth:`notify`, but wakes up all waiting coroutines instead of one. If the + calling coroutine has not acquired the lock when this method is called, a :exc:`RuntimeError` is raised. .. method:: release() @@ -250,7 +250,7 @@ Semaphore A semaphore manages an internal counter which is decremented by each :meth:`acquire` call and incremented by each :meth:`release` call. The counter can never go below zero; when :meth:`acquire` finds that it is zero, - it blocks, waiting until some other thread calls :meth:`release`. + it blocks, waiting until some other coroutine calls :meth:`release`. Semaphores also support the context management protocol. From ad643b59ce5404fe5d7191fbbf99e2491d74779a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 6 May 2015 21:29:14 -0400 Subject: [PATCH 2/2] remove word we don't need --- Doc/library/symtable.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/symtable.rst b/Doc/library/symtable.rst index c04e22e5d24..2503d335e8c 100644 --- a/Doc/library/symtable.rst +++ b/Doc/library/symtable.rst @@ -189,4 +189,4 @@ Examining Symbol Tables .. method:: get_namespace() Return the namespace bound to this name. If more than one namespace is - bound, a :exc:`ValueError` is raised. + bound, :exc:`ValueError` is raised.