[Python-checkins] python/dist/src/Lib/email FeedParser.py,1.3,1.4

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue May 11 14:10:19 EDT 2004


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

Modified Files:
	FeedParser.py 
Log Message:
_parsegen(): Watch out for empty epilogues.


Index: FeedParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/FeedParser.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FeedParser.py	10 May 2004 14:48:30 -0000	1.3
--- FeedParser.py	11 May 2004 18:10:15 -0000	1.4
***************
*** 366,373 ****
              # the epilogue.  Also, watch out for an empty string epilogue,
              # which means a single newline.
!             firstline = epilogue[0]
!             bolmo = NLCRE_bol.match(firstline)
!             if bolmo:
!                 epilogue[0] = firstline[len(bolmo.group(0)):]
              self._cur.epilogue = EMPTYSTRING.join(epilogue)
              return
--- 366,374 ----
              # the epilogue.  Also, watch out for an empty string epilogue,
              # which means a single newline.
!             if epilogue:
!                 firstline = epilogue[0]
!                 bolmo = NLCRE_bol.match(firstline)
!                 if bolmo:
!                     epilogue[0] = firstline[len(bolmo.group(0)):]
              self._cur.epilogue = EMPTYSTRING.join(epilogue)
              return




More information about the Python-checkins mailing list