Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars#134233
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Most of these tests currently pass, where the content is simply empty.Three of them fail, where none of the ending delimiters are found.
a32ea45
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@bitdancer for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks@bitdancer for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…_get_ptext_to_endchars (pythonGH-134233)Fix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty string if there is no content after the opening delimiter. The calling code is responsible for handling the lack of the trailing delimiter, which it already does; this edge case was the header ending immediately after the opening delimiter.(cherry picked from commita32ea45)Co-authored-by: R. David Murray <rdmurray@bitdance.com>
…_get_ptext_to_endchars (pythonGH-134233)Fix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty string if there is no content after the opening delimiter. The calling code is responsible for handling the lack of the trailing delimiter, which it already does; this edge case was the header ending immediately after the opening delimiter.(cherry picked from commita32ea45)Co-authored-by: R. David Murray <rdmurray@bitdance.com>
GH-134677 is a backport of this pull request to the3.13 branch. |
GH-134678 is a backport of this pull request to the3.14 branch. |
Uh oh!
There was an error while loading.Please reload this page.
Fix an UnboundLocalError that can occur when parsing certain delimited constructs in headers (domain literals, quoted strings, comments). After the fix the _get_ptext_to_endchars returns an empty string if there is no content after the opening delimiter. The calling code is responsible for handling the lack of the trailing delimiter, which it already does; this edge case was the header ending immediately after the opening delimiter.
UnboundLocalError
inemail._header_value_parser.parse_message_id
#134152