Run 2to3 over Doc/lib/sqlite3/.

This commit is contained in:
Collin Winter 2007-08-07 01:20:21 +00:00
parent b942d28bf5
commit 45d569b823
22 changed files with 43 additions and 43 deletions

View file

@ -11,10 +11,10 @@ now = datetime.datetime.now()
cur.execute("insert into test(d, ts) values (?, ?)", (today, now))
cur.execute("select d, ts from test")
row = cur.fetchone()
print today, "=>", row[0], type(row[0])
print now, "=>", row[1], type(row[1])
print(today, "=>", row[0], type(row[0]))
print(now, "=>", row[1], type(row[1]))
cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"')
row = cur.fetchone()
print "current_date", row[0], type(row[0])
print "current_timestamp", row[1], type(row[1])
print("current_date", row[0], type(row[0]))
print("current_timestamp", row[1], type(row[1]))