Home
last modified time | relevance | path

Searched refs:hextet_str (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/
Dipaddress.py1708 def _parse_hextet(cls, hextet_str): argument
1723 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)
/external/python/ipaddress/
Dipaddress.py1856 def _parse_hextet(cls, hextet_str): argument
1871 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)