8000 GH-100884: email/_header_value_parser: don't encode list separators by t-8ch · Pull Request #100885 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-100884: email/_header_value_parser: don't encode list separators #100885

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

Merged
merged 3 commits into from
Feb 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
GH-100884: email/_header_value_parser: use existing ListSeparator
There already is already a predefined object with the correct
properties, use it.
  • Loading branch information
t-8ch committed Jan 9, 2023
commit b1f41b8b30ea62c7975fb31cb9377c4e73c24c13
2 changes: 1 addition & 1 deletion Lib/email/_header_value_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ def get_address_list(value):
address_list.defects.append(errors.InvalidHeaderDefect(
"invalid address in address-list"))
if value: # Must be a , at this point.
address_list.append(ValueTerminal(',', 'list-separator'))
address_list.append(ListSeparator)
value = value[1:]
return address_list, value

Expand Down
0