From d8e8e54c2be394d82407f3f7d6f2f84bff574249 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 19 Jul 2002 22:26:01 +0000 Subject: [PATCH] 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. --- Lib/email/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0