summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-16 19:43:41 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-16 19:44:26 (GMT)
commit17f1be63681c921a82f2dd9dd44e0305e46b4733 (patch)
tree7ee181d024775c87ff9ef37e2bc25e0f882e2934 /Doc/includes
parent8e3926a810a5d849573a96b33308b9e2a1014ac4 (diff)
parentb3890226b33f86d485dccac309d442b15e766270 (diff)
downloadcpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.zip
cpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.tar.gz
cpython-17f1be63681c921a82f2dd9dd44e0305e46b4733.tar.bz2
Merge branch '3.2'
Closes #13995.
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/sqlite3/shortcut_methods.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/shortcut_methods.py b/Doc/includes/sqlite3/shortcut_methods.py
index 596d87c..71600d4 100644
--- a/Doc/includes/sqlite3/shortcut_methods.py
+++ b/Doc/includes/sqlite3/shortcut_methods.py
@@ -17,5 +17,4 @@ con.executemany("insert into person(firstname, lastname) values (?, ?)", persons
for row in con.execute("select firstname, lastname from person"):
print(row)
-# Using a dummy WHERE clause to not let SQLite take the shortcut table deletes.
-print("I just deleted", con.execute("delete from person where 1=1").rowcount, "rows")
+print("I just deleted", con.execute("delete from person").rowcount, "rows")