mirror of
https://github.com/python/cpython.git
synced 2025-10-20 13:43:01 +00:00
Run 2to3 over Doc/lib/sqlite3/.
This commit is contained in:
parent
b942d28bf5
commit
45d569b823
22 changed files with 43 additions and 43 deletions
|
@ -9,9 +9,9 @@ SELECT = "select name_last, age from people order by age, name_last"
|
|||
# resulting sequences to yield their elements (name_last, age):
|
||||
cur.execute(SELECT)
|
||||
for (name_last, age) in cur:
|
||||
print '%s is %d years old.' % (name_last, age)
|
||||
print('%s is %d years old.' % (name_last, age))
|
||||
|
||||
# 2. Equivalently:
|
||||
cur.execute(SELECT)
|
||||
for row in cur:
|
||||
print '%s is %d years old.' % (row[0], row[1])
|
||||
print('%s is %d years old.' % (row[0], row[1]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue