mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Syntax fixes for examples in the Doc/includes
This commit is contained in:
parent
134c35b191
commit
c961322f4f
2 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,6 @@ headers = Parser().parsestr('From: <user@example.com>\n'
|
||||||
'Body would go here\n')
|
'Body would go here\n')
|
||||||
|
|
||||||
# Now the header items can be accessed as a dictionary:
|
# Now the header items can be accessed as a dictionary:
|
||||||
print 'To: %s' % headers['to']
|
print('To: %s' % headers['to'])
|
||||||
print 'From: %s' % headers['from']
|
print('From: %s' % headers['from'])
|
||||||
print 'Subject: %s' % headers['subject']
|
print('Subject: %s' % headers['subject'])
|
||||||
|
|
|
@ -23,4 +23,4 @@ con.executescript("""
|
||||||
insert into recipe (name, ingredients) values ('pumpkin pie', 'pumpkin sugar flour butter');
|
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'"):
|
for row in con.execute("select rowid, name, ingredients from recipe where name match 'pie'"):
|
||||||
print row
|
print(row)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue