Skip to content

Conversation

@zangjiucheng
Copy link
Contributor

@zangjiucheng zangjiucheng commented Nov 2, 2025

(cherry picked from commit 6d45cd8)

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.

…s set to 0 or None (pythonGH-135367)

(cherry picked from commit 6d45cd8)

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.
parsed_body = parsed.get_body().get_content().rstrip('\n')
self.assertEqual(parsed_body, body)

def test_invalid_header_names(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These invalid header name tests are the conflict that caused the automatic back port to fail. You'll need to delete them (they are tests for a change that was not back ported from 3.14 to 3.13). (cherry-picker conflicts can be quite confusing).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks. I am going to address that.

@bitdancer bitdancer merged commit 10af840 into python:3.13 Nov 2, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants