[PATCH] [3.11] gh-118643: Fix AttributeError in the email module (GH-119099) (#119393)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 23 May 2024 12:09:03 +0000 (15:09 +0300)
committerSean Whitton <spwhitton@spwhitton.name>
Thu, 20 Mar 2025 02:07:39 +0000 (10:07 +0800)
commit0ba307dec4b0e7f0dbd74c806ad84d1f33ce8b40
tree5af61362976b9123db2ce8515816a7ca10dccdf8
parenta5cac0ac49d305eecf8e5347aac556a3ec4b4d74
[PATCH] [3.11] gh-118643: Fix AttributeError in the email module (GH-119099) (#119393)

Fix regression introduced in gh-100884: AttributeError when re-fold a long
address list.

Also fix more cases of incorrect encoding of the address separator in the
address list missed in gh-100884.
(cherry picked from commit 858b9e85fcdd495947c9e892ce6e3734652c48f2)
(cherry picked from commit 4762b365406a8cf026a4a4ddcae34c28a41c3de9)

Gbp-Pq: Name CVE-2025-1795-2.patch
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py