Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

crazymerlyn
Copy link

@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`
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.

policy.max_line_length is incorrectly assumed to never be None
2 participants