From: Kevin Evans Date: Fri, 23 Aug 2024 16:24:12 +0000 (-0700) Subject: Fix typo mentioning threads instead of tasks (#123203) X-Git-Tag: v3.14.0a1~709 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58fdb169c8a93925541fecc74ba73c566147f2ca;p=thirdparty%2FPython%2Fcpython.git Fix typo mentioning threads instead of tasks (#123203) --- diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index aaee8ff07029..f2f8b7ec8580 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -341,9 +341,9 @@ class Condition(_ContextManagerMixin, mixins._LoopBoundMixin): fut.set_result(False) def notify_all(self): - """Wake up all threads waiting on this condition. This method acts - like notify(), but wakes up all waiting threads instead of one. If the - calling thread has not acquired the lock when this method is called, + """Wake up all tasks waiting on this condition. This method acts + like notify(), but wakes up all waiting tasks instead of one. If the + calling task has not acquired the lock when this method is called, a RuntimeError is raised. """ self.notify(len(self._waiters))