]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Jun 2025 07:38:39 +0000 (09:38 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Jun 2025 07:38:39 +0000 (07:38 +0000)
commit85efa77e35661a077390caba12f2f2c9c26f86a5
treecb54175b48135ae10b89f79e01d5d427c9426624
parentef539654e682cc451ea68fa366a16e9020df89b8
[3.14] gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (GH-134687) (#135247)

gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (GH-134687)

- Fix sorting logic in `email.utils.decode_params` to handle None values.
- Update tests for RFC 2231 continuation sorting.
(cherry picked from commit bcb6b45cb86a2f9f65b6c41f27c36059ba86a50b)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
Lib/email/utils.py
Lib/test/test_email/test_email.py
Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst [new file with mode: 0644]