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.
This commit is contained in:
Barry Warsaw 2002-07-19 22:26:01 +00:00
parent bb26b4530b
commit d8e8e54c2b
1 changed files with 2 additions and 2 deletions

View File

@ -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)