(addr)
return addrs[0]
Parse addr into its constituent realname and email address parts.

    Return a tuple of realname and email address, unless the parse fails, in
    which case return a 2-tuple of ('', '').
Parse addr into its constituent realname and email address parts.
Parse addr into its constituent realname and email address parts .
def parseaddr(addr):
    """
    Parse addr into its constituent realname and email address parts.

    Return a tuple of realname and email address, unless the parse fails, in
    which case return a 2-tuple of ('', '').
    """
    addrs = _AddressList(addr).addresslist
    if not addrs:
        return '', ''
    return addrs[0]
def parseaddr ( addr ) : addrs = _AddressList ( addr ) . addresslist if not addrs : return '' , '' return addrs [ 0 ]