]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994) (GH-117998)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Apr 2024 16:59:35 +0000 (18:59 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 16:59:35 +0000 (16:59 +0000)
commitfda8cd1fd38a12e17b1db1775d54ff0fa4d886b8
treeba0127c7f89e042d76be05558b193aae3db7959f
parente95a535ea2915060759db66ae9e228a19f134125
[3.12] gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994) (GH-117998)

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

   Content-Type: text/plain; charset*=ansi-x3.4-1968''utf-8
(cherry picked from commit deaecb88fa5da68cbffca413c63af95fd99578dd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]