diff options
author | Barry Warsaw <barry@python.org> | 2002-07-19 22:26:01 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-19 22:26:01 (GMT) |
commit | d8e8e54c2be394d82407f3f7d6f2f84bff574249 (patch) | |
tree | b8eacaee3d9c2630b0968bae7e90fb7273766e11 /Lib | |
parent | bb26b4530ba12f46b29624fb588c50fbaabb9378 (diff) | |
download | cpython-d8e8e54c2be394d82407f3f7d6f2f84bff574249.zip cpython-d8e8e54c2be394d82407f3f7d6f2f84bff574249.tar.gz cpython-d8e8e54c2be394d82407f3f7d6f2f84bff574249.tar.bz2 |
message_from_string(), message_from_file(): The consensus on the
mimelib-devel list is that non-strict parsing should be the default.
Make it so.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/email/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index 1693c78..834e9aa 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -32,8 +32,8 @@ __all__ = ['Charset', from email.Parser import Parser as _Parser from email.Message import Message as _Message -def message_from_string(s, _class=_Message, strict=1): +def message_from_string(s, _class=_Message, strict=0): return _Parser(_class, strict=strict).parsestr(s) -def message_from_file(fp, _class=_Message, strict=1): +def message_from_file(fp, _class=_Message, strict=0): return _Parser(_class, strict=strict).parse(fp) |