]> granicus.if.org Git - python/commitdiff
Fixing the file call in the rfc822.Message replacement example.
authorSean Reifscheider <jafo@tummy.com>
Sat, 20 Mar 2010 00:06:05 +0000 (00:06 +0000)
committerSean Reifscheider <jafo@tummy.com>
Sat, 20 Mar 2010 00:06:05 +0000 (00:06 +0000)
Doc/includes/email-headers.py

index edaac235f35ea86e1014214a46a4848b85c6b616..664c3ff1ca8b6db83751eb51bc03dc0193a6b0d8 100644 (file)
@@ -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@example.com>\n'