https://github.com/python/cpython/commit/58fdb169c8a93925541fecc74ba73c566147f2ca
commit: 58fdb169c8a93925541fecc74ba73c566147f2ca
branch: main
author: Kevin Evans <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2024-08-23T21:54:12+05:30
summary:
Fix typo mentioning threads instead of tasks (#123203)
files:
M Lib/asyncio/locks.py
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py
index aaee8ff0702923..f2f8b7ec858096 100644
--- a/Lib/asyncio/locks.py
+++ b/Lib/asyncio/locks.py
@@ -341,9 +341,9 @@ def _notify(self, n):
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))
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]