From b83b70f128f6cdb8f77c8a59c22339e33620da63 Mon Sep 17 00:00:00 2001 From: Alexander Vasin Date: Tue, 21 Aug 2018 11:55:48 +0300 Subject: [PATCH] Fixed typo with asynccontextmanager --- Doc/library/contextlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 793bd63f673f6a..7dc5b2989f9c0c 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)