psycopg.git / summary / log / commit / refs

commit    b270a0fe2f66c870e7eb2e1baa79b65330c3d752
Author:   Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date:     Fri Mar 12 17:43:12 2021 +0000

    Fix typo in pool with usage


docs/advanced/pool.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst index 953f0424..3ab526f5 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 [parent: 9cc3707db6aa]