cpython/Lib/email
R David Murray e2922835b0 Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.
2012-03-14 03:03:27 -04:00
..
mime
__init__.py
_parseaddr.py Merge 3.2, fix typos. 2011-11-11 19:39:25 +01:00
base64mime.py
charset.py
encoders.py
errors.py #1874: detect invalid multipart CTE and report it as a defect. 2011-06-22 13:47:53 -04:00
feedparser.py #1874: detect invalid multipart CTE and report it as a defect. 2011-06-22 13:47:53 -04:00
generator.py #11731: simplify/enhance parser/generator API by introducing policy objects. 2011-04-18 13:59:37 -04:00
header.py #14291: if a header has non-ascii unicode, default to CTE using utf-8 2012-03-14 02:59:51 -04:00
iterators.py
message.py
parser.py #11731: simplify/enhance parser/generator API by introducing policy objects. 2011-04-18 13:59:37 -04:00
policy.py #11731: simplify/enhance parser/generator API by introducing policy objects. 2011-04-18 13:59:37 -04:00
quoprimime.py
utils.py #665194: support roundtripping RFC2822 date stamps in the email.utils module 2011-07-20 11:41:21 -04:00