Skip to content

Commit d8d2831

Browse files
authored
reword getaddresses docstring
1 parent ecbb31c commit d8d2831

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/email/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ def _post_parse_validation(parsed_email_header_tuples):
130130

131131

132132
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.
133+
"""Return a list of (REALNAME, EMAIL) or ('','') for each fieldvalue.
134+
135+
When parsing fails for a fieldvalue, a 2-tuple of ('', '') is returned in
136+
its place.
136137
137138
If the resulting list is greater than number of items in the fieldvalues
138139
list, a list containing a single empty 2-tuple [('', '')] will be returned.

0 commit comments

Comments
 (0)