]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update dbapi_transactions.rst (#8032)
authorRobert Kulagowski <rkulagow@schedulesdirect.org>
Wed, 18 May 2022 20:25:18 +0000 (15:25 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 18 May 2022 20:26:08 +0000 (22:26 +0200)
If you're defining 'y=row.y' then you might as well use 'y' in the print statement.

(cherry picked from commit b66d57451ad28572c000490c10e451cbf600a9d1)

doc/build/tutorial/dbapi_transactions.rst

index 0249702ef6bb6c67a386933d2e71b0a06b29fee9..a9dff8f38515fa3fbd88ad6c6c662554c307cc42 100644 (file)
@@ -270,7 +270,7 @@ Below we illustrate a variety of ways to access rows.
           y = row.y
 
           # illustrate use with Python f-strings
-          print(f"Row: {row.x} {row.y}")
+          print(f"Row: {row.x} {y}")
 
   ..