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

Method _report_invalid_netmask

Lib/ipaddress.py:465–467  ·  view source on GitHub ↗
(cls, netmask_str)

Source from the content-addressed store, hash-verified

463
464 @classmethod
465 def _report_invalid_netmask(cls, netmask_str):
466 msg = '%r is not a valid netmask' % netmask_str
467 raise NetmaskValueError(msg) from None
468
469 @classmethod
470 def _prefix_from_prefix_string(cls, prefixlen_str):

Callers 4

_make_netmaskMethod · 0.80
_make_netmaskMethod · 0.80

Calls 1

NetmaskValueErrorClass · 0.85

Tested by

no test coverage detected