We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecbb31c commit d8d2831Copy full SHA for d8d2831
Lib/email/utils.py
@@ -130,9 +130,10 @@ def _post_parse_validation(parsed_email_header_tuples):
130
131
132
def getaddresses(fieldvalues):
133
- """Return a list of (REALNAME, EMAIL) for each fieldvalue,
134
- unless the parse fails, in which case return a 2-tuple of ('', '')
135
- will be returned in it's place.
+ """Return a list of (REALNAME, EMAIL) or ('','') for each fieldvalue.
+
+ When parsing fails for a fieldvalue, a 2-tuple of ('', '') is returned in
136
+ its place.
137
138
If the resulting list is greater than number of items in the fieldvalues
139
list, a list containing a single empty 2-tuple [('', '')] will be returned.
0 commit comments