diff options
-rw-r--r-- | Doc/includes/email-headers.py | 6 | ||||
-rw-r--r-- | Doc/includes/sqlite3/load_extension.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/includes/email-headers.py b/Doc/includes/email-headers.py index 664c3ff..a53317d 100644 --- a/Doc/includes/email-headers.py +++ b/Doc/includes/email-headers.py @@ -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']) diff --git a/Doc/includes/sqlite3/load_extension.py b/Doc/includes/sqlite3/load_extension.py index 7f893c9..015aa0d 100644 --- a/Doc/includes/sqlite3/load_extension.py +++ b/Doc/includes/sqlite3/load_extension.py @@ -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) |