Home
last modified time | relevance | path

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

/third_party/python/Lib/
Dipaddress.py1203 def _parse_octet(cls, octet_str): argument
1216 if not octet_str:
1219 if not (octet_str.isascii() and octet_str.isdigit()):
1221 raise ValueError(msg % octet_str)
1224 if len(octet_str) > 3:
1226 raise ValueError(msg % octet_str)
1229 if octet_str != '0' and octet_str[0] == '0':
1231 raise ValueError(msg % octet_str)
1233 octet_int = int(octet_str, 10)