From c16897cd9ec2f27bb90a373334be49b227696ead Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 11 Oct 2019 10:27:16 -0700 Subject: [PATCH] Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720) --- Doc/library/asyncio-sync.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.3