Skip to content

Commit b1f41b8

Browse files
committed
GH-100884: email/_header_value_parser: use existing ListSeparator
There already is already a predefined object with the correct properties, use it.
1 parent 837ba05 commit b1f41b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/email/_header_value_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ def get_address_list(value):
20222022
address_list.defects.append(errors.InvalidHeaderDefect(
20232023
"invalid address in address-list"))
20242024
if value: # Must be a , at this point.
2025-
address_list.append(ValueTerminal(',', 'list-separator'))
2025+
address_list.append(ListSeparator)
20262026
value = value[1:]
20272027
return address_list, value
20282028

0 commit comments

Comments
 (0)