[Python-checkins] r79126 - python/branches/py3k/Doc/includes/email-headers.py

sean.reifschneider python-checkins at python.org
Sat Mar 20 01:06:05 CET 2010


Author: sean.reifschneider
Date: Sat Mar 20 01:06:05 2010
New Revision: 79126

Log:
Fixing the file call in the rfc822.Message replacement example.


Modified:
   python/branches/py3k/Doc/includes/email-headers.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	Sat Mar 20 01:06:05 2010
@@ -2,7 +2,7 @@
 from email.parser import Parser
 
 #  If the e-mail headers are in a file, uncomment this line:
-#headers = Parser().parse(messagefile)
+#headers = Parser().parse(open(messagefile, 'r'))
 
 #  Or for parsing headers in a string, use:
 headers = Parser().parsestr('From: <user at example.com>\n'


More information about the Python-checkins mailing list