Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb30da9

Browse files
author
Sean Reifscheider
committed
Fixing the file call in the rfc822.Message replacement example.
1 parent 78a44c5 commit bb30da9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/includes/email-headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from email.parser import Parser
33

44
# If the e-mail headers are in a file, uncomment this line:
5-
#headers = Parser().parse(messagefile)
5+
#headers = Parser().parse(open(messagefile, 'r'))
66

77
# Or for parsing headers in a string, use:
88
headers = Parser().parsestr('From: <[email protected]>\n'

0 commit comments

Comments
 (0)