MCPcopy Index your code
hub / github.com/python/cpython / _report_invalid_netmask

Method _report_invalid_netmask

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

Source from the content-addressed store, hash-verified

460
461 @classmethod
462 def _report_invalid_netmask(cls, netmask_str):
463 msg = '%r is not a valid netmask' % netmask_str
464 raise NetmaskValueError(msg) from None
465
466 @classmethod
467 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