summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorSean Reifscheider <jafo@tummy.com>2010-03-20 00:06:05 (GMT)
committerSean Reifscheider <jafo@tummy.com>2010-03-20 00:06:05 (GMT)
commitbb30da9698e50bf33d2ab820fc876c6e9452e33b (patch)
tree4221dd8f3d39d3093c60336ae5bb416acab8c15e /Doc/includes
parent78a44c5428a6ff016baceb6fc517b1efd39afd33 (diff)
downloadcpython-bb30da9698e50bf33d2ab820fc876c6e9452e33b.zip
cpython-bb30da9698e50bf33d2ab820fc876c6e9452e33b.tar.gz
cpython-bb30da9698e50bf33d2ab820fc876c6e9452e33b.tar.bz2
Fixing the file call in the rfc822.Message replacement example.
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/email-headers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-headers.py b/Doc/includes/email-headers.py
index edaac23..664c3ff 100644
--- a/Doc/includes/email-headers.py
+++ b/Doc/includes/email-headers.py
@@ -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'