parameters: (pair)
return_statement: return address
docstring: The inverse of parseaddr(), this takes a 2-tuple of the form
      (realname, email_address) and returns the string value suitable
      for an RFC 2822 From, To or Cc header.
  
      If the first element of pair is false, then the second element is
      returned unmodified.
docstring_summary: The inverse of parseaddr(), this takes a 2-tuple of the form
      (realname, email_address) and returns the string value suitable
      for an RFC 2822 From, To or Cc header.
docstring_tokens: The inverse of parseaddr () this takes a 2 - tuple of the form ( realname email_address ) and returns the string value suitable for an RFC 2822 From To or Cc header .
function: def formataddr(pair):
      """The inverse of parseaddr(), this takes a 2-tuple of the form
      (realname, email_address) and returns the string value suitable
      for an RFC 2822 From, To or Cc header.
  
      If the first element of pair is false, then the second element is
      returned unmodified.
      """
      name, address = pair
      if name:
          quotes = ''
          if specialsre.search(name):
              quotes = '"'
          name = escapesre.sub(r'\\\g<0>', name)
          return '%s%s%s <%s>' % (quotes, name, quotes, address)
      return address
function_tokens: def formataddr ( pair ) : name , address = pair if name : quotes = '' if specialsre . search ( name ) : quotes = '"' name = escapesre . sub ( r'\\\g<0>' , name ) return '%s%s%s <%s>' % ( quotes , name , quotes , address ) return address