Skip to content

Commit 68a384f

Browse files
Update comment to reflect unconditional wrapping behavior
1 parent d135510 commit 68a384f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def quoteaddr(addrstring):
148148
"""
149149
displayname, addr = email.utils.parseaddr(addrstring)
150150
if (displayname, addr) == ('', ''):
151-
# parseaddr couldn't parse it, use it as is and hope for the best.
151+
# parseaddr couldn't parse it, wrap it in angle brackets.
152152
return "<%s>" % addrstring
153153
return "<%s>" % addr
154154

0 commit comments

Comments
 (0)