]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 contin...
authorJiucheng(Oliver) <git.jiucheng@gmail.com>
Sun, 8 Jun 2025 07:13:21 +0000 (03:13 -0400)
committerGitHub <noreply@github.com>
Sun, 8 Jun 2025 07:13:21 +0000 (09:13 +0200)
commitbcb6b45cb86a2f9f65b6c41f27c36059ba86a50b
tree09bd4b36920080dc3a1cef534985d0ef14b36845
parentd610f11d21241d353b25843f66e51098a5c0ddad
gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (#134687)

- Fix sorting logic in `email.utils.decode_params` to handle None values.
- Update tests for RFC 2231 continuation sorting.
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]