mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII charset (GH-116125)
This commit is contained in:
parent
df59401108
commit
f97f25ef5d
4 changed files with 21 additions and 2 deletions
|
@ -243,7 +243,7 @@ class Generator:
|
|||
# existing message.
|
||||
msg = deepcopy(msg)
|
||||
del msg['content-transfer-encoding']
|
||||
msg.set_payload(payload, charset)
|
||||
msg.set_payload(msg._payload, charset)
|
||||
payload = msg.get_payload()
|
||||
self._munge_cte = (msg['content-transfer-encoding'],
|
||||
msg['content-type'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue