]> granicus.if.org Git - python/commitdiff
Syntax fixes for examples in the Doc/includes
authorSenthil Kumaran <orsenthil@gmail.com>
Sun, 17 Oct 2010 11:42:21 +0000 (11:42 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sun, 17 Oct 2010 11:42:21 +0000 (11:42 +0000)
Doc/includes/email-headers.py
Doc/includes/sqlite3/load_extension.py

index 664c3ff1ca8b6db83751eb51bc03dc0193a6b0d8..a53317dbd84375e279aee45062a0361f954c0502 100644 (file)
@@ -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'])
index 7f893c9286d636e5996bf40e7d29e0616bcf6f48..015aa0de8c46d4d2fd783d057ab5055a0ed43a74 100644 (file)
@@ -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)