]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None...
authorJiucheng(Oliver) <git.jiucheng@gmail.com>
Sun, 2 Nov 2025 20:20:29 +0000 (15:20 -0500)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 20:20:29 +0000 (15:20 -0500)
commit10af8404b4be19183822d2d3e36288a8d1418a1c
tree9d82003ceec479205cc1cdb94408d2dd1115eca9
parentb8910fc4446c245ebe2aeff2eaf99b490887619c
[3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367) (#140917)

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

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
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]