[Python-checkins] python/dist/src/Lib/email FeedParser.py,1.5,1.6 (original) (raw)

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue May 11 18:24:02 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib/email In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25298

Modified Files: FeedParser.py Log Message: Tests for message/external-body and for duplicate boundary lines.

Index: FeedParser.py

RCS file: /cvsroot/python/python/dist/src/Lib/email/FeedParser.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FeedParser.py 11 May 2004 20:19:09 -0000 1.5 --- FeedParser.py 11 May 2004 22:23:59 -0000 1.6


*** 307,313 **** self._input.unreadline(line) continue ! # We saw a boundary separating two parts. Recurse to ! # parse this subpart; the input stream points at the ! # subpart's first line. self._input.push_eof_matcher(boundaryre.match) for retval in self._parsegen(): --- 307,322 ---- self._input.unreadline(line) continue ! # We saw a boundary separating two parts. Consume any ! # multiple boundary lines that may be following. Our ! # interpretation of RFC 2046 BNF grammar does not produce ! # body parts within such double boundaries. ! while True: ! line = self._input.readline() ! mo = boundaryre.match(line) ! if not mo: ! self._input.unreadline(line) ! break ! # Recurse to parse this subpart; the input stream points ! # at the subpart's first line. self._input.push_eof_matcher(boundaryre.match) for retval in self._parsegen():



More information about the Python-checkins mailing list