Searched refs:hextet_str (Results 1 – 2 of 2) sorted by relevance
1708 def _parse_hextet(cls, hextet_str): argument1723 if not cls._HEX_DIGITS.issuperset(hextet_str):1724 raise ValueError("Only hex digits permitted in %r" % hextet_str)1727 if len(hextet_str) > 4:1729 raise ValueError(msg % hextet_str)1731 return int(hextet_str, 16)
1856 def _parse_hextet(cls, hextet_str): argument1871 if not cls._HEX_DIGITS.issuperset(hextet_str):1872 raise ValueError("Only hex digits permitted in %r" % hextet_str)1875 if len(hextet_str) > 4:1877 raise ValueError(msg % hextet_str)1879 return int(hextet_str, 16)