Skip to content
Prev Previous commit
Next Next commit
reword getaddresses docstring
  • Loading branch information
gpshead authored May 31, 2023
commit d8d283103938bf90bd8b904dec34251d9f7403e1
7 changes: 4 additions & 3 deletions Lib/email/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def _post_parse_validation(parsed_email_header_tuples):


def getaddresses(fieldvalues):
"""Return a list of (REALNAME, EMAIL) for each fieldvalue,
unless the parse fails, in which case return a 2-tuple of ('', '')
will be returned in it's place.
"""Return a list of (REALNAME, EMAIL) or ('','') for each fieldvalue.

Comment thread
tdwyer marked this conversation as resolved.
Outdated
When parsing fails for a fieldvalue, a 2-tuple of ('', '') is returned in
its place.

If the resulting list is greater than number of items in the fieldvalues
Comment thread
tdwyer marked this conversation as resolved.
Outdated
list, a list containing a single empty 2-tuple [('', '')] will be returned.
Expand Down