--- Lib/email/ofeedparser.py 2006-03-18 10:41:53.000000000 -0500 +++ Lib/email/feedparser.py 2009-03-29 21:31:18.000000000 -0400 @@ -28,7 +28,8 @@ NLCRE = re.compile('\r\n|\r|\n') NLCRE_bol = re.compile('(\r\n|\r|\n)') -NLCRE_eol = re.compile('(\r\n|\r|\n)$') +#GAN 29Mar09 $ matches \n?$ NLCRE_eol = re.compile('(\r\n|\r|\n)$') +NLCRE_eol = re.compile('(\r\n|\r|\n)\Z') NLCRE_crack = re.compile('(\r\n|\r|\n)') # RFC 2822 $3.6.8 Optional fields. ftext is %d33-57 / %d59-126, Any character # except controls, SP, and ":". @@ -296,7 +301,7 @@ separator = '--' + boundary boundaryre = re.compile( '(?P' + re.escape(separator) + - r')(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$') + r')(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?\Z') #GAN 29Mar09 $ capturing_preamble = True preamble = [] linesep = False