Commit 71608476 authored by Barry Warsaw's avatar Barry Warsaw

Parser.__init__(): The consensus on the mimelib-devel list is that

non-strict parsing should be the default.  Make it so.
parent c001ee3f
...@@ -16,7 +16,7 @@ NL = '\n' ...@@ -16,7 +16,7 @@ NL = '\n'
class Parser: 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. """Parser of RFC 2822 and MIME email messages.
Creates an in-memory object tree representing the email message, which Creates an in-memory object tree representing the email message, which
...@@ -36,7 +36,7 @@ class Parser: ...@@ -36,7 +36,7 @@ class Parser:
more forgiving in parsing of ill-formatted MIME documents. When 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 non-strict mode is used, the parser will try to make up for missing or
erroneous boundaries and other peculiarities seen in the wild. erroneous boundaries and other peculiarities seen in the wild.
Defaults to strict parsing. Default is non-strict parsing.
""" """
self._class = _class self._class = _class
self._strict = strict self._strict = strict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment