From: Daniele Varrazzo Date: Mon, 26 Feb 2024 10:52:21 +0000 (+0100) Subject: docs: fix missing `async` in example X-Git-Tag: 3.2.0~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=558cbe7ef7ef6a6d1f6c65e368aaaf9f9a10108e;p=thirdparty%2Fpsycopg.git docs: fix missing `async` in example Close #740. --- diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst index e62c292b4..74fa4e3d2 100644 --- a/docs/advanced/pool.rst +++ b/docs/advanced/pool.rst @@ -59,7 +59,7 @@ the methods requiring them:: async with pool.connection() as conn: await conn.execute("SELECT something FROM somewhere ...") - with conn.cursor() as cur: + async with conn.cursor() as cur: await cur.execute("SELECT something else...")