From: Sean Reifscheider Date: Sat, 20 Mar 2010 00:05:42 +0000 (+0000) Subject: Fixing the file call in the rfc822.Message replacement example. X-Git-Tag: v2.7b1~308 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2efeff4a58df58623da87b2d8b943f39960b11e;p=thirdparty%2FPython%2Fcpython.git Fixing the file call in the rfc822.Message replacement example. --- diff --git a/Doc/includes/email-headers.py b/Doc/includes/email-headers.py index edaac235f35e..664c3ff1ca8b 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: \n'