def _ValidateNotIpV4Address(host):
 matcher = _URL_IP_V4_ADDR_RE.match(host)
 if (matcher and (sum((1 for x in matcher.groups() if (int(x) <= 255))) == 4)):
  raise validation.ValidationError(("Host may not match an ipv4 address '%s'" % host))
 return matcher

def _ValidateNotIpV4Address ( host ) : matcher = _URL_IP_V4_ADDR_RE . match ( host ) if ( matcher and ( sum ( ( 1 for x in matcher . groups ( ) if ( int ( x ) <= 255 ) ) ) == 4 ) ) : raise validation . ValidationError ( ( "Host may not match an ipv4 address '%s'" % host ) ) return matcher
validate host is not an ipv4 address .