diff options
author | R. David Murray <rdmurray@bitdance.com> | 2025-05-25 18:09:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-25 18:09:32 -0400 |
commit | a32ea456992fedfc9ce61561c88056de3c18cffd (patch) | |
tree | 94093d962b24b3d2b9a8c6800ff80dbb5fec0829 /Lib/test/test_codeccallbacks.py | |
parent | 7b1a70023127666e98a1fc7f7a3ee04f7bdc4028 (diff) | |
download | cpython-a32ea456992fedfc9ce61561c88056de3c18cffd.tar.gz cpython-a32ea456992fedfc9ce61561c88056de3c18cffd.zip |
gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars (#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.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
0 files changed, 0 insertions, 0 deletions