Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1693ba8 commit 2d2fc22Copy full SHA for 2d2fc22
1 file changed
Lib/email/__init__.py
@@ -4,7 +4,7 @@
4
"""A package for parsing, handling, and generating email messages.
5
"""
6
7
-__version__ = '2.1'
+__version__ = '2.2'
8
9
__all__ = ['Charset',
10
'Encoders',
@@ -32,8 +32,8 @@
32
from email.Parser import Parser as _Parser
33
from email.Message import Message as _Message
34
35
-def message_from_string(s, _class=_Message):
36
- return _Parser(_class).parsestr(s)
+def message_from_string(s, _class=_Message, strict=1):
+ return _Parser(_class, strict=strict).parsestr(s)
37
38
-def message_from_file(fp, _class=_Message):
39
- return _Parser(_class).parse(fp)
+def message_from_file(fp, _class=_Message, strict=1):
+ return _Parser(_class, strict=strict).parse(fp)
0 commit comments