]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fix docs wording after Daniel Fortunov's suggestion
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 16 Oct 2021 10:04:54 +0000 (12:04 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 16 Oct 2021 10:04:54 +0000 (12:04 +0200)
docs/basic/transactions.rst

index b9f91d3a783918b1441c69100b8dfafe72b1b033..1951b3127822c12d3bfc76a8f1001cc0c850738e 100644 (file)
@@ -228,8 +228,9 @@ context.
     developers is to:
 
     - use a connection block: ``with psycopg.connect(...) as conn``;
-    - use an autocommit connection: ``conn.autocommit = True``, eventually as
-      `!connect()` parameter too;
+    - use an autocommit connection, either passing ``autocommit=True`` as
+      `!connect()` parameter or setting the attribute ``conn.autocommit =
+      True``;
     - use `!with conn.transaction()` blocks to manage transactions only where
       needed.