summaryrefslogtreecommitdiffstats
path: root/Doc/lib/sqlite3/pysqlite_datetime.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-07 01:20:21 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-07 01:20:21 (GMT)
commit45d569b8232d19b0f6bd1385e8fb624f310d230e (patch)
tree610eda1d0c574f81bed24f2ceceecb0abf2ca1e5 /Doc/lib/sqlite3/pysqlite_datetime.py
parentb942d28bf5b62e1823b91a7b3986e120ec9763bc (diff)
downloadcpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.zip
cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.gz
cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.bz2
Run 2to3 over Doc/lib/sqlite3/.
Diffstat (limited to 'Doc/lib/sqlite3/pysqlite_datetime.py')
-rw-r--r--Doc/lib/sqlite3/pysqlite_datetime.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/sqlite3/pysqlite_datetime.py b/Doc/lib/sqlite3/pysqlite_datetime.py
index efa4b06..68d4935 100644
--- a/Doc/lib/sqlite3/pysqlite_datetime.py
+++ b/Doc/lib/sqlite3/pysqlite_datetime.py
@@ -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]))