mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Parser.__init__(): 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
c10686426e
commit
bb26b4530b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue