cpython/Lib/email
R David Murray 00ae435dee #18324: set_payload now correctly handles binary input.
This also backs out the previous fixes for for #14360, #1717, and #16564.
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent.  This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent.  Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.

Tests by Vajrasky Kok.
2013-08-21 21:10:31 -04:00
..
mime Issue #17047: remove doubled words added in 3.3 2013-03-11 18:34:00 -04:00
__init__.py #11686: add missing entries to email __all__ lists. 2012-03-16 22:43:05 -04:00
_encoded_words.py Issue #17047: remove doubled words added in 3.3 2013-03-11 18:34:00 -04:00
_header_value_parser.py #18431: Decode encoded words in atoms in new email parser. 2013-07-12 16:00:28 -04:00
_parseaddr.py Closes #15925: fix regression in parsedate() and parsedate_tz() that should return None if unable to parse the argument. 2012-09-22 09:03:56 +02:00
_policybase.py Don't use metaclasses when class decorators can do the job. 2012-05-31 18:00:45 -04:00
architecture.rst Fix a couple of typos. 2013-08-10 18:47:07 +03:00
base64mime.py Issue #4770: Restrict binascii module to accept only bytes (as specified). 2010-07-27 21:20:15 +00:00
charset.py #18437: fix comment typo. 2013-07-12 22:55:43 -04:00
encoders.py #18324: set_payload now correctly handles binary input. 2013-08-21 21:10:31 -04:00
errors.py Now that Defects are Exception subclasses, call super. 2012-06-08 22:45:46 -04:00
feedparser.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:26:36 +02:00
generator.py Fix a couple of typos. 2013-08-10 18:47:07 +03:00
header.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:26:36 +02:00
headerregistry.py #15160: Extend the new email parser to handle MIME headers. 2012-06-24 05:03:27 -04:00
iterators.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
message.py #18324: set_payload now correctly handles binary input. 2013-08-21 21:10:31 -04:00
parser.py Merge: #17431: Fix missing import of BytesFeedParser in email.parser. 2013-03-15 20:42:29 -04:00
policy.py Issue #17047: remove doubled words added in 3.3 2013-03-11 18:34:00 -04:00
quoprimime.py #18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova. 2013-07-06 17:16:04 +02:00
utils.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:26:36 +02:00