[Python-checkins] python/dist/src/Lib/email __init__.py,1.10,1.11
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Fri, 19 Jul 2002 15:26:03 -0700
- Previous message: [Python-checkins] python/dist/src/Lib/email Parser.py,1.11,1.12
- Next message: [Python-checkins] python/dist/src/Lib/email/test __init__.py,NONE,1.1 test_email.py,NONE,1.1 test_email_codecs.py,NONE,1.1 test_email_torture.py,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv8450/email
Modified Files:
__init__.py
Log Message:
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.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/__init__.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** __init__.py 18 Jul 2002 21:29:17 -0000 1.10
--- __init__.py 19 Jul 2002 22:26:01 -0000 1.11
***************
*** 33,39 ****
from email.Message import Message as _Message
! def message_from_string(s, _class=_Message, strict=1):
return _Parser(_class, strict=strict).parsestr(s)
! def message_from_file(fp, _class=_Message, strict=1):
return _Parser(_class, strict=strict).parse(fp)
--- 33,39 ----
from email.Message import Message as _Message
! def message_from_string(s, _class=_Message, strict=0):
return _Parser(_class, strict=strict).parsestr(s)
! def message_from_file(fp, _class=_Message, strict=0):
return _Parser(_class, strict=strict).parse(fp)
- Previous message: [Python-checkins] python/dist/src/Lib/email Parser.py,1.11,1.12
- Next message: [Python-checkins] python/dist/src/Lib/email/test __init__.py,NONE,1.1 test_email.py,NONE,1.1 test_email_codecs.py,NONE,1.1 test_email_torture.py,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]