Skip to content

[3.15] gh-161966: gh-161966: Fix UnboundLocalError in email._header_value_parser for a domain literal starting with whitespace (GH-161967) - #162908

Merged
bitdancer merged 1 commit into
python:3.15from
miss-islington:backport-b143ec4-3.15
Dec 1, 2026

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This makes the code handle leading spaces the same way it does other spaces: by adding an ObsoleteHeaderDefect.
(cherry picked from commit b143ec4)

Co-authored-by: David Andrews dha@xoba.com

…der_value_parser for a domain literal starting with whitespace (pythonGH-161967)

This makes the code handle leading spaces the same way it does other spaces: by adding an ObsoleteHeaderDefect.
(cherry picked from commit b143ec4)

Co-authored-by: David Andrews <dha@xoba.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants