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 Remove stray pychecker directive. 2009-06-28 12:10:18 +00:00
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 Remove a dict.has_key() usage in email._parseaddr found while running -3. 2008-08-03 23:40:13 +00:00
base64mime.py #2622 Import errors in email.message, from a py2app standalone application. 2009-07-11 14:33:51 +00:00
charset.py Remove Barry's love of deprecated syntax to silence warnings in the email 2008-08-03 23:27:32 +00:00
encoders.py Issue #7472: remove unused code from email.encoders.encode_7or8bit. 2010-05-05 17:31:03 +00:00
errors.py Merge email package 4.0 from the sandbox, including documentation, test cases, 2006-03-18 15:41:53 +00:00
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 Merge email package 4.0 from the sandbox, including documentation, test cases, 2006-03-18 15:41:53 +00:00
message.py #1368247: make set_charset/MIMEText automatically encode unicode _payload. 2010-06-02 22:03:15 +00:00
parser.py Merge email package 4.0 from the sandbox, including documentation, test cases, 2006-03-18 15:41:53 +00:00
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