gh-81074: Allow non-ASCII addr_spec in email.headerregistry.Address (#122477)
The email.headerregistry.Address constructor raised an error if addr_spec contained a non-ASCII character. (But it fully supports non-ASCII in the separate username and domain args.) This change removes the error for a non-ASCII addr_spec, as well as the Defect that triggered it. In the unicode era non-ascii is not a defect, though it is an error when an attempt is made to serialize it to ascii. The serialization issue was handled in #122540.
M
Mike Edmunds committed
b60557382828a094f9da525cbd71c154bb97378b
Parent: d96ffc1
Committed by GitHub <noreply@github.com>
on 5/1/2026, 6:00:46 PM