[Python-checkins] python/dist/src/Lib/email Parser.py,1.13,1.14
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Tue, 10 Sep 2002 09:14:59 -0700
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv6283a/email
Modified Files:
Parser.py
Log Message:
_parsebody(): Instead of raising a BoundaryError when no start
boundary could be found -- in a lax parser -- the entire body is
assigned to the message payload.
Index: Parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Parser.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Parser.py 23 Aug 2002 18:19:30 -0000 1.13
--- Parser.py 10 Sep 2002 16:14:56 -0000 1.14
***************
*** 136,141 ****
payload)
if not mo:
! raise Errors.BoundaryError(
! "Couldn't find starting boundary: %s" % boundary)
start = mo.start()
if start > 0:
--- 136,144 ----
payload)
if not mo:
! if self._strict:
! raise Errors.BoundaryError(
! "Couldn't find starting boundary: %s" % boundary)
! container.set_payload(payload)
! return
start = mo.start()
if start > 0: