summaryrefslogtreecommitdiffstats
path: root/Doc/lib/sqlite3/pysqlite_datetime.py
diff options
context:
space:
mode:
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]))