From: Barry Warsaw Date: Fri, 19 Jul 2002 22:25:34 +0000 (+0000) Subject: Parser.__init__(): The consensus on the mimelib-devel list is that X-Git-Tag: v2.3c1~4916 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb26b4530ba12f46b29624fb588c50fbaabb9378;p=python Parser.__init__(): The consensus on the mimelib-devel list is that non-strict parsing should be the default. Make it so. --- diff --git a/Lib/email/Parser.py b/Lib/email/Parser.py index 308110796c..b9d3ed3645 100644 --- a/Lib/email/Parser.py +++ b/Lib/email/Parser.py @@ -16,7 +16,7 @@ NL = '\n' class Parser: - def __init__(self, _class=Message.Message, strict=1): + def __init__(self, _class=Message.Message, strict=0): """Parser of RFC 2822 and MIME email messages. Creates an in-memory object tree representing the email message, which @@ -36,7 +36,7 @@ class Parser: more forgiving in parsing of ill-formatted MIME documents. When non-strict mode is used, the parser will try to make up for missing or erroneous boundaries and other peculiarities seen in the wild. - Defaults to strict parsing. + Default is non-strict parsing. """ self._class = _class self._strict = strict