

def validate_comma_separated_emails(value):
    '\n    Validate every email address in a comma separated list of emails.\n    '
    if (not isinstance(value, (tuple, list))):
        raise ValidationError('Email list must be a list/tuple.')
    for email in value:
        try:
            validate_email_with_name(email)
        except ValidationError:
            raise ValidationError(('Invalid email: %s' % email), code='invalid')

dataset/ETHPy150Open ui/django-post_office/post_office/validators.py validate_comma_separated_emails/original