mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Whitespace normalization.
This commit is contained in:
parent
3053667d09
commit
4511a713d5
8 changed files with 64 additions and 72 deletions
|
@ -14,4 +14,3 @@ cur = con.cursor()
|
||||||
p = Point(4.0, -3.2)
|
p = Point(4.0, -3.2)
|
||||||
cur.execute("select ?", (p,))
|
cur.execute("select ?", (p,))
|
||||||
print cur.fetchone()[0]
|
print cur.fetchone()[0]
|
||||||
|
|
||||||
|
|
|
@ -15,4 +15,3 @@ cur = con.cursor()
|
||||||
p = Point(4.0, -3.2)
|
p = Point(4.0, -3.2)
|
||||||
cur.execute("select ?", (p,))
|
cur.execute("select ?", (p,))
|
||||||
print cur.fetchone()[0]
|
print cur.fetchone()[0]
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,3 @@ age = 72
|
||||||
cur.execute("select name_last, age from people where name_last=:who and age=:age",
|
cur.execute("select name_last, age from people where name_last=:who and age=:age",
|
||||||
{"who": who, "age": age})
|
{"who": who, "age": age})
|
||||||
print cur.fetchone()
|
print cur.fetchone()
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,3 @@ age = 72
|
||||||
cur.execute("select name_last, age from people where name_last=:who and age=:age",
|
cur.execute("select name_last, age from people where name_last=:who and age=:age",
|
||||||
locals())
|
locals())
|
||||||
print cur.fetchone()
|
print cur.fetchone()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,3 @@ for person in newPeople:
|
||||||
|
|
||||||
# The changes will not be saved unless the transaction is committed explicitly:
|
# The changes will not be saved unless the transaction is committed explicitly:
|
||||||
con.commit()
|
con.commit()
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,3 @@ for row in con.execute("select firstname, lastname from person"):
|
||||||
|
|
||||||
# Using a dummy WHERE clause to not let SQLite take the shortcut table deletes.
|
# 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 where 1=1").rowcount, "rows"
|
||||||
|
|
||||||
|
|
|
@ -40,4 +40,3 @@ assert type(row[0]) == unicode
|
||||||
cur.execute("select ?", ("Germany",))
|
cur.execute("select ?", ("Germany",))
|
||||||
row = cur.fetchone()
|
row = cur.fetchone()
|
||||||
assert type(row[0]) == str
|
assert type(row[0]) == str
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue