summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3/shortcut_methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/sqlite3/shortcut_methods.py')
-rw-r--r--Doc/includes/sqlite3/shortcut_methods.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/includes/sqlite3/shortcut_methods.py b/Doc/includes/sqlite3/shortcut_methods.py
index 98a3941..e128a3b 100644
--- a/Doc/includes/sqlite3/shortcut_methods.py
+++ b/Doc/includes/sqlite3/shortcut_methods.py
@@ -15,10 +15,6 @@ con.executemany("insert into person(firstname, lastname) values (?, ?)", persons
# Print the table contents
for row in con.execute("select firstname, lastname from person"):
- print(row)
+ print row
-print("I just deleted", con.execute("delete from person").rowcount, "rows")
-
-# close is not a shortcut method and it's not called automatically,
-# so the connection object should be closed manually
-con.close()
+print "I just deleted", con.execute("delete from person").rowcount, "rows"