From: Daniele Varrazzo Date: Fri, 12 Mar 2021 17:43:12 +0000 (+0100) Subject: Fix typo in pool with usage X-Git-Tag: 3.0.dev0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b270a0fe2f66c870e7eb2e1baa79b65330c3d752;p=thirdparty%2Fpsycopg.git Fix typo in pool with usage --- diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst index 953f04244..3ab526f5e 100644 --- a/docs/advanced/pool.rst +++ b/docs/advanced/pool.rst @@ -27,7 +27,7 @@ however, and not the necessary one; in particular the connection pool acts as a context manager and can be closed automatically at the end of its ``with`` block:: - with my_pool as ConnectionPool(conninfo, **kwargs): + with ConnectionPool(conninfo, **kwargs) as my_pool: run_app(my_pool) # the pool is now closed