Skip to content

gh-78981: Update contentmanager to handle 0/None max_line_length#123581

Open
crazymerlyn wants to merge 4 commits intopython:mainfrom
crazymerlyn:fix-issue-78981
Open

gh-78981: Update contentmanager to handle 0/None max_line_length#123581
crazymerlyn wants to merge 4 commits intopython:mainfrom
crazymerlyn:fix-issue-78981

Conversation

@crazymerlyn
Copy link
Copy Markdown

@crazymerlyn crazymerlyn commented Sep 1, 2024

Fixed a bug where email.contentmanager.set_content raised error when email.policy.Policy.max_line_length is 0 or None

Copied from #9578 with some minor changes based on comments in the PR.

Also fixes #85751 .

Fixed a bug where `email.contentmanager.set_content` raised error when
`email.policy.Policy.max_line_length` is 0 or `None`
Comment thread Lib/test/test_email/test_contentmanager.py Outdated
Comment thread Misc/NEWS.d/next/Library/2024-09-01-20-20-49.gh-issue-78981.nNRvSX.rst Outdated
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

policy.max_line_length is incorrectly assumed to never be None

2 participants