]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135307: Fix email error when policy max_line_length is set to 0 or None (#135367)
authorJiucheng(Oliver) <git.jiucheng@gmail.com>
Sun, 2 Nov 2025 14:32:14 +0000 (09:32 -0500)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 14:32:14 +0000 (09:32 -0500)
commit6d45cd8dbb07ae020ec07f2c3375dd06e52377f6
tree84e8e0807cb4123bcb97ee48ec2a33852c01a9c3
parent173cc53d9fdc596d7a19102fa407c829f9c71516
gh-135307: Fix email error when policy max_line_length is set to 0 or None (#135367)

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.
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]