

def parse_emails(emails):
    '\n    Parse a list of emails of the following format:\n    <John Doe> john@abc.com, <Betty Boo> boo@bbs.com\n    :param str emails: "Comma separated emails"\n    :return: A list of name, email tuples\n    :rtype: list\n    '
    if (not emails):
        return []
    email_tuples = []
    for email in emails.split(','):
        r = regex.match(email.strip())
        if r:
            email_tuples.append(r.groups())
    return email_tuples

dataset/ETHPy150Open djng/djng/server/core/env_utils.py parse_emails/original