cpython/Lib/email
R. David Murray 61746d580e #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.
If a body part ended with \r\n, feedparser, using '$' to terminate its
search for the newline, would match on the \r\n, and think that it needed
to strip two characters in order to account for the line end before the
boundary.  That made it chop one too many characters off the end of
the body part.  Using \Z makes the match correct.

Patch and test by Tony Nelson.
2010-06-03 15:43:20 +00:00
..
mime
test #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n. 2010-06-03 15:43:20 +00:00
__init__.py Issue #7143: get_payload used to strip any trailing newline from a 2010-03-08 02:04:06 +00:00
_parseaddr.py
base64mime.py #2622 Import errors in email.message, from a py2app standalone application. 2009-07-11 14:33:51 +00:00
charset.py
encoders.py Issue #7472: remove unused code from email.encoders.encode_7or8bit. 2010-05-05 17:31:03 +00:00
errors.py
feedparser.py #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n. 2010-06-03 15:43:20 +00:00
generator.py Issue 7970: When email.Parser.Parser parses a MIME message of type 2010-02-21 04:23:00 +00:00
header.py #2622 Import errors in email.message, from a py2app standalone application. 2009-07-11 14:33:51 +00:00
iterators.py
message.py #1368247: make set_charset/MIMEText automatically encode unicode _payload. 2010-06-02 22:03:15 +00:00
parser.py
quoprimime.py #2622 Import errors in email.message, from a py2app standalone application. 2009-07-11 14:33:51 +00:00
utils.py Issue #7143: get_payload used to strip any trailing newline from a 2010-03-08 02:04:06 +00:00