diff options
| author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-19 23:11:37 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-19 23:11:37 (GMT) |
| commit | 72ce82abcf9051b18a05350936de7ecab7306662 (patch) | |
| tree | 067d161cef823b302614fab778546c80d4b68f8f /Python/importlib.h | |
| parent | 335eb57823779af770d0faec9df27f60c73b8690 (diff) | |
| download | cpython-72ce82abcf9051b18a05350936de7ecab7306662.zip cpython-72ce82abcf9051b18a05350936de7ecab7306662.tar.gz cpython-72ce82abcf9051b18a05350936de7ecab7306662.tar.bz2 | |
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
This PR replaces GH-1977. The reason for the replacement is two-fold.
The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit.
Also the tests are different. The test_nonascii_as_string_without_cte test in GH-1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness.
Automerge-Triggered-By: @warsaw
(cherry picked from commit bf838227c35212709dc43b3c3c57f8e1655c1d24)
Co-authored-by: Mark Sapiro <mark@msapiro.net>
Diffstat (limited to 'Python/importlib.h')
0 files changed, 0 insertions, 0 deletions
