From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 11 Oct 2019 17:27:16 +0000 (-0700) Subject: Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720) X-Git-Tag: v3.7.6rc1~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1845997dd9328a79da6395a0c23077c42102e1b0;p=thirdparty%2FPython%2Fcpython.git Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720) --- diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 993bd13fb030..79f6b02d85e2 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()