Commit 6336b151 authored by Barry Warsaw's avatar Barry Warsaw

message_from_string(), message_from_file(): The consensus on the

mimelib-devel list is that non-strict parsing should be the default.
Make it so.
parent 71608476
......@@ -32,8 +32,8 @@ __all__ = ['Charset',
from email.Parser import Parser as _Parser
from email.Message import Message as _Message
def message_from_string(s, _class=_Message, strict=1):
def message_from_string(s, _class=_Message, strict=0):
return _Parser(_class, strict=strict).parsestr(s)
def message_from_file(fp, _class=_Message, strict=1):
def message_from_file(fp, _class=_Message, strict=0):
return _Parser(_class, strict=strict).parse(fp)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment