]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:00 +0000 (09:38 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Jun 2025 07:38:00 +0000 (07:38 +0000)
commite5d1771c6b3b99d1b112b4c7e555c7e35e38657b
tree23b2bbaa31eb79f7be52a083072e45d90955c5cf
parent76208054808964567c0ceecadaf75089045aec15
[3.13] gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (GH-134687) (#135248)

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]