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.
This commit is contained in:
Xtreak 2019-05-20 03:22:20 +05:30 committed by Berker Peksag
parent 5c08ce9bf7
commit 287b84de93
26 changed files with 52 additions and 19 deletions

View file

@ -15,3 +15,5 @@ for (name_last, age) in cur:
cur.execute(SELECT)
for row in cur:
print('%s is %d years old.' % (row[0], row[1]))
con.close()