[Python-checkins] r85643 - in python/branches/py3k/Doc/includes: email-headers.py sqlite3/load_extension.py
senthil.kumaran
python-checkins at python.org
Sun Oct 17 13:42:21 CEST 2010
Author: senthil.kumaran
Date: Sun Oct 17 13:42:21 2010
New Revision: 85643
Log:
Syntax fixes for examples in the Doc/includes
Modified:
python/branches/py3k/Doc/includes/email-headers.py
python/branches/py3k/Doc/includes/sqlite3/load_extension.py
Modified: python/branches/py3k/Doc/includes/email-headers.py
==============================================================================
--- python/branches/py3k/Doc/includes/email-headers.py (original)
+++ python/branches/py3k/Doc/includes/email-headers.py Sun Oct 17 13:42:21 2010
@@ -12,6 +12,6 @@
'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'])
Modified: python/branches/py3k/Doc/includes/sqlite3/load_extension.py
==============================================================================
--- python/branches/py3k/Doc/includes/sqlite3/load_extension.py (original)
+++ python/branches/py3k/Doc/includes/sqlite3/load_extension.py Sun Oct 17 13:42:21 2010
@@ -23,4 +23,4 @@
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)
More information about the Python-checkins
mailing list