[Python-checkins] Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
Lisa Roach
webhook-mailer at python.org
Fri Oct 11 13:27:23 EDT 2019
https://github.com/python/cpython/commit/1845997dd9328a79da6395a0c23077c42102e1b0
commit: 1845997dd9328a79da6395a0c23077c42102e1b0
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Lisa Roach <lisaroach14 at gmail.com>
date: 2019-10-11T10:27:16-07:00
summary:
Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
files:
M Doc/library/asyncio-sync.rst
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 993bd13fb0301..79f6b02d85e2e 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -187,11 +187,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