Staging
v0.8.1
https://github.com/python/cpython
Revision bf838227c35212709dc43b3c3c57f8e1655c1d24 authored by Mark Sapiro on 19 October 2020, 22:49:19 UTC, committed by GitHub on 19 October 2020, 22:49:19 UTC


This PR replaces #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 #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
1 parent 1438c2a
Raw File
Tip revision: bf838227c35212709dc43b3c3c57f8e1655c1d24 authored by Mark Sapiro on 19 October 2020, 22:49:19 UTC
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
Tip revision: bf83822
CODE_OF_CONDUCT.md
# Code of Conduct

Please note that all interactions on
[Python Software Foundation](https://www.python.org/psf-landing/)-supported
infrastructure is [covered](https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties)
by the [PSF Code of Conduct](https://www.python.org/psf/codeofconduct/),
which includes all the infrastructure used in the development of Python itself
(e.g. mailing lists, issue trackers, GitHub, etc.).

In general, this means that everyone is expected to be **open**, **considerate**, and
**respectful** of others no matter what their position is within the project.

back to top