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/md5func.py b/Doc/includes/sqlite3/md5func.py index 0056b2d..16dc348 100644 --- a/Doc/includes/sqlite3/md5func.py +++ b/Doc/includes/sqlite3/md5func.py
@@ -9,3 +9,5 @@ cur = con.cursor() cur.execute("select md5(?)", (b"foo",)) print(cur.fetchone()[0]) + +con.close()