Skip to content

Commit fc2e957

Browse files
Fix doctest
1 parent ae5d700 commit fc2e957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,9 +2452,9 @@ ensure that there is no open transaction:
24522452

24532453
.. testcode::
24542454

2455-
saved = cur.autocommit
2455+
saved = con.autocommit
24562456
con.autocommit = True # Disable implicit transaction control.
2457-
cursor.execute("PRAGMA foreign_keys=ON")
2457+
cur.execute("PRAGMA foreign_keys=ON")
24582458
con.autocommit = saved # Restore the previous setting.
24592459

24602460

0 commit comments

Comments
 (0)