Skip to content

Commit

Permalink
pythonGH-100884: email/_header_value_parser: use existing ListSeparator
Browse files Browse the repository at this point in the history
There already is already a predefined object with the correct
properties, use it.
  • Loading branch information
t-8ch committed Jan 9, 2023
1 parent 837ba05 commit b1f41b8
Showing 1 changed file with 1 addition and 1 deletion.
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 comments on commit b1f41b8

Please sign in to comment.