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

Lib/email/__init__.py

index 1693c78a094a233fa9f3335b53a5f3a60d94b53e..834e9aaccca2b5e82f0fe610ae221bde6d896c29 100644 (file)
@@ -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)