mirror of https://github.com/python/cpython
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:
parent
bb26b4530b
commit
d8e8e54c2b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue