diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-09-30 05:28:53 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-09-30 05:28:53 (GMT) |
commit | 01c671a07cd2b5053617e5fb6093761ae6222127 (patch) | |
tree | 5b0ac29ed95d749522838662fe30f9bb09acee07 | |
parent | 65c848e48445100261d93ceb0d8b252252768d41 (diff) | |
parent | ea22685a042dd8033fc9217af9d7c2fb793a649a (diff) | |
download | cpython-01c671a07cd2b5053617e5fb6093761ae6222127.zip cpython-01c671a07cd2b5053617e5fb6093761ae6222127.tar.gz cpython-01c671a07cd2b5053617e5fb6093761ae6222127.tar.bz2 |
Merge: Add notes to whatsnew porting for visible changes in email compatibility mode.
-rw-r--r-- | Doc/whatsnew/3.3.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 1943a06..4e62595 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -2102,6 +2102,22 @@ Porting Python code special case the standard import hooks so they are still supported even though they do not provide the non-standard ``iter_modules()`` method. +* A longstanding RFC-compliance bug (:issue:`1079`) in the parsing done by + :func:`email.header.decode_header` has been fixed. Code that uses the + standard idiom to convert encoded headers into unicode + (``str(make_header(decode_header(h))``) will see no change, but code that + looks at the individual tuples returned by decode_header will see that + whitespace that precedes or follows ``ASCII`` sections is now included in the + ``ASCII`` section. Code that builds headers using ``make_header`` should + also continue to work without change, since ``make_header`` continues to add + whitespace between ``ASCII`` and non-``ASCII`` sections if it is not already + present in the input strings. + +* :func:`email.utils.formataddr` now does the correct content transfer + encoding when passed non-``ASCII`` display names. Any code that depended on + the previous buggy behavior that preserved the non-``ASCII`` unicode in the + formatted output string will need to be changed. + Porting C code -------------- |