MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_int_address

Method _check_int_address

Lib/ipaddress.py:410–417  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

408 return self._reverse_pointer()
409
410 def _check_int_address(self, address):
411 if address < 0:
412 msg = "%d (< 0) is not permitted as an IPv%d address"
413 raise AddressValueError(msg % (address, self.version))
414 if address > self._ALL_ONES:
415 msg = "%d (>= 2**%d) is not permitted as an IPv%d address"
416 raise AddressValueError(msg % (address, self.max_prefixlen,
417 self.version))
418
419 def _check_packed_address(self, address, expected_len):
420 address_len = len(address)

Callers 2

__init__Method · 0.80
__init__Method · 0.80

Calls 1

AddressValueErrorClass · 0.85

Tested by

no test coverage detected