From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 25 Aug 2018 02:51:10 +0000 (-0400) Subject: Fixed typo with asynccontextmanager code example (GH-8845) X-Git-Tag: v3.7.1rc1~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f9621cb9b0d1f5c9d28e095db31d8c12e58c932;p=thirdparty%2FPython%2Fcpython.git Fixed typo with asynccontextmanager code example (GH-8845) `yield conn`, instead of just `yield`. (cherry picked from commit 416cbce22d5d8879986125f07b3e293421bc975d) Co-authored-by: Alexander Vasin --- diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 793bd63f673f..7dc5b2989f9c 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)