[Python-checkins] Fix typo: equivalent code of `async with cond` (GH-11681)
Lisa Roach
webhook-mailer at python.org
Wed Feb 13 21:39:34 EST 2019
https://github.com/python/cpython/commit/d73ac0eba992a33992210915739d73250bf6d38d
commit: d73ac0eba992a33992210915739d73250bf6d38d
branch: master
author: Kevin Mai-Husan Chia <mhchia at users.noreply.github.com>
committer: Lisa Roach <lisaroach14 at gmail.com>
date: 2019-02-13T18:39:25-08:00
summary:
Fix typo: equivalent code of `async with cond` (GH-11681)
files:
M Doc/library/asyncio-sync.rst
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 18b562970436..18da18873dbf 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -180,11 +180,11 @@ Condition
cond = asyncio.Condition()
# ... later
- await lock.acquire()
+ await cond.acquire()
try:
await cond.wait()
finally:
- lock.release()
+ cond.release()
.. coroutinemethod:: acquire()
More information about the Python-checkins
mailing list