]> granicus.if.org Git - python/commitdiff
Parser.__init__(): The consensus on the mimelib-devel list is that
authorBarry Warsaw <barry@python.org>
Fri, 19 Jul 2002 22:25:34 +0000 (22:25 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 19 Jul 2002 22:25:34 +0000 (22:25 +0000)
non-strict parsing should be the default.  Make it so.

Lib/email/Parser.py

index 308110796c95e4b03aa7d2eac2ba0fbdb8cb1e9c..b9d3ed3645e9a26cb06005b731236779a6c45cd4 100644 (file)
@@ -16,7 +16,7 @@ NL = '\n'
 
 \f
 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