From: Daniele Varrazzo Date: Thu, 19 Nov 2020 23:23:19 +0000 (+0000) Subject: Typo in async with example fixed X-Git-Tag: 3.0.dev0~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e2644ed059f52d29db3ecd9bb2ba207ef46b5f;p=thirdparty%2Fpsycopg.git Typo in async with example fixed --- diff --git a/docs/usage.rst b/docs/usage.rst index 38adbc507..e4c56bdd0 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -127,7 +127,7 @@ it in two steps instead, as in aconn = await psycopg3.AsyncConnection.connect(): async with aconn: cur = await aconn.cursor() - async with as cur: + async with cur: await cur.execute(...) which can be condensed as: