From: Joe Freeman Date: Wed, 2 Feb 2022 21:22:35 +0000 (+0000) Subject: Fix pool docs typo X-Git-Tag: pool-3.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f531327eb50324cb87aca068fb404adb905f14d3;p=thirdparty%2Fpsycopg.git Fix pool docs typo --- diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst index f8569574e..0b2b0a8d3 100644 --- a/docs/advanced/pool.rst +++ b/docs/advanced/pool.rst @@ -38,7 +38,7 @@ other functions, modules, threads to use it:: from .db import pool def my_function(): - with poolconnection() as conn: + with pool.connection() as conn: conn.execute(...) Ideally you may want to call `~ConnectionPool.close()` when the use of the