summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-07-19 22:25:34 (GMT)
committerBarry Warsaw <barry@python.org>2002-07-19 22:25:34 (GMT)
commitbb26b4530ba12f46b29624fb588c50fbaabb9378 (patch)
treec7206b8de59d8fdc3f0bb514c5f5f203b079a894 /Lib/email
parentc10686426edd6883b88950a754335b678750bf67 (diff)
downloadcpython-bb26b4530ba12f46b29624fb588c50fbaabb9378.zip
cpython-bb26b4530ba12f46b29624fb588c50fbaabb9378.tar.gz
cpython-bb26b4530ba12f46b29624fb588c50fbaabb9378.tar.bz2
Parser.__init__(): The consensus on the mimelib-devel list is that
non-strict parsing should be the default. Make it so.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/Parser.py b/Lib/email/Parser.py
index 3081107..b9d3ed3 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