Commit c961322f authored by Senthil Kumaran's avatar Senthil Kumaran

Syntax fixes for examples in the Doc/includes

parent 134c35b1
......@@ -12,6 +12,6 @@ headers = Parser().parsestr('From: <user@example.com>\n'
'Body would go here\n')
# Now the header items can be accessed as a dictionary:
print 'To: %s' % headers['to']
print 'From: %s' % headers['from']
print 'Subject: %s' % headers['subject']
print('To: %s' % headers['to'])
print('From: %s' % headers['from'])
print('Subject: %s' % headers['subject'])
......@@ -23,4 +23,4 @@ con.executescript("""
insert into recipe (name, ingredients) values ('pumpkin pie', 'pumpkin sugar flour butter');
""")
for row in con.execute("select rowid, name, ingredients from recipe where name match 'pie'"):
print row
print(row)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment