FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Syntax fixes for examples in the Doc/includes · python/cpython@c961322 · GitHub

Repository navigation

Commit c961322

Browse files
committed
Syntax fixes for examples in the Doc/includes
1 parent 134c35b commit c961322

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/includes/email-headers.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
'Body would go here\n')
1313

1414
# Now the header items can be accessed as a dictionary:
15-
print 'To: %s' % headers['to']
16-
print 'From: %s' % headers['from']
17-
print 'Subject: %s' % headers['subject']
15+
print('To: %s' % headers['to'])
16+
print('From: %s' % headers['from'])
17+
print('Subject: %s' % headers['subject'])

‎Doc/includes/sqlite3/load_extension.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
insert into recipe (name, ingredients) values ('pumpkin pie', 'pumpkin sugar flour butter');
2424
""")
2525
for row in con.execute("select rowid, name, ingredients from recipe where name match 'pie'"):
26-
print row
26+
print(row)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL