]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 Apr 2024 16:31:26 +0000 (19:31 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 16:31:26 +0000 (19:31 +0300)
commitdeaecb88fa5da68cbffca413c63af95fd99578dd
tree6fd57f11e025d3fbb5fa4805e55af3b50befb84f
parentc179c0e6cbb4d1e981fffd43f207f5b1aa5388e5
gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994)

It was raised when the charset is rfc2231 encoded, e.g.:

   Content-Type: text/plain; charset*=ansi-x3.4-1968''utf-8
Lib/email/message.py
Lib/test/test_email/test_email.py
Misc/NEWS.d/next/Library/2024-04-17-18-00-30.gh-issue-80361.RstWg-.rst [new file with mode: 0644]