Skip to content

Commit 3d2aa89

Browse files
committed
gh-118716: Do not enforce ASCII to format address
RFC 6530 allows UTF-8 strings
1 parent 71080b8 commit 3d2aa89

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/email/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def formataddr(pair, charset='utf-8'):
8383
'utf-8'.
8484
"""
8585
name, address = pair
86-
# The address MUST (per RFC) be ascii, so raise a UnicodeError if it isn't.
87-
address.encode('ascii')
8886
if name:
8987
try:
9088
name.encode('ascii')

0 commit comments

Comments
 (0)