def EmailCheck(email):
 if (not EMAIL_RE.match(email)):
  raise ValueError((_('Not a valid email: %s') % email))
 return email

def EmailCheck ( email ) : if ( not EMAIL_RE . match ( email ) ) : raise ValueError ( ( _ ( 'Not a valid email: %s' ) % email ) ) return email
verify that a string is a valid email .