commit | 287b84de939db47aa8c6f30734ceb8aba9d1db29 | [log] [tgz] |
---|---|---|
author | Xtreak <tir.karthi@gmail.com> | Mon May 20 03:22:20 2019 +0530 |
committer | Berker Peksag <berker.peksag@gmail.com> | Mon May 20 00:52:20 2019 +0300 |
tree | 0c492acbe1135b59f30a0dc8aa5bfd0705387371 | |
parent | 5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0 [diff] [blame] |
bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079) The sqlit3.Connection object doesn't call its close() method when it's used as a context manager.
diff --git a/Doc/includes/sqlite3/rowclass.py b/Doc/includes/sqlite3/rowclass.py index 92b5ad6..fc60287 100644 --- a/Doc/includes/sqlite3/rowclass.py +++ b/Doc/includes/sqlite3/rowclass.py
@@ -10,3 +10,5 @@ assert row["name"] == row["nAmE"] assert row[1] == row["age"] assert row[1] == row["AgE"] + +con.close()