]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135307: Fix email error when policy max_line_length is set to 0 or None...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Nov 2025 15:03:12 +0000 (16:03 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 15:03:12 +0000 (10:03 -0500)
commit7e1bac6a1aa6705c2386d80f093e575106de3340
tree1361e62397ed823b3d5a1c29d87977d8dcfe214b
parent6ab4dfb5604475b63d32bb050120704ea45fd05b
[3.14] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367) (#140915)

gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367)
(cherry picked from commit 6d45cd8dbb07ae020ec07f2c3375dd06e52377f6)

RDM: Like the change made in a earlier PR to the folder, we can/must use 'maxlen' as a stand in for 'unlimited' when computing line lengths when max_line_length is 0 or None; otherwise the computation results in a traceback.

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
Lib/email/contentmanager.py
Lib/test/test_email/test_message.py
Misc/NEWS.d/next/Library/2025-06-10-18-02-29.gh-issue-135307.fXGrcK.rst [new file with mode: 0644]