From: Barry Warsaw Date: Fri, 19 Jul 2002 22:26:01 +0000 (+0000) Subject: message_from_string(), message_from_file(): The consensus on the X-Git-Tag: v2.3c1~4915 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8e8e54c2be394d82407f3f7d6f2f84bff574249;p=python 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. --- diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index 1693c78a09..834e9aaccc 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -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)