From: Alexander Vasin <hi@alvass.in> Date: Sat, 25 Aug 2018 02:38:11 +0000 (+0300) Subject: Fixed typo with asynccontextmanager code example (GH-8845) X-Git-Tag: v3.8.0a1~1163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=416cbce22d5d8879986125f07b3e293421bc975d;p=python Fixed typo with asynccontextmanager code example (GH-8845) `yield conn`, instead of just `yield`. --- diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 793bd63f67..7dc5b2989f 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -116,7 +116,7 @@ Functions and classes provided: async def get_connection(): conn = await acquire_db_connection() try: - yield + yield conn finally: await release_db_connection(conn)