(cls, address)
return address[0], cls._max_prefixlen
Helper function to parse address of Network/Interface.

        Arg:
            address: Argument of Network/Interface.

        Returns:
            (addr, prefix) tuple.
Helper function to parse address of Network/Interface.
Helper function to parse address of Network / Interface .
def _split_addr_prefix(cls, address):
        """Helper function to parse address of Network/Interface.

        Arg:
            address: Argument of Network/Interface.

        Returns:
            (addr, prefix) tuple.
        """
        # a packed address or integer
        if isinstance(address, (bytes, int)):
            return address, cls._max_prefixlen

        if not isinstance(address, tuple):
            # Assume input argument to be string or any object representation
            # which converts into a formatted IP prefix string.
            address = _split_optional_netmask(address)

        # Constructing from a tuple (addr, [mask])
        if len(address) > 1:
            return address
        return address[0], cls._max_prefixlen
def _split_addr_prefix ( cls , address ) : # a packed address or integer if isinstance ( address , ( bytes , int ) ) : return address , cls . _max_prefixlen if not isinstance ( address , tuple ) : # Assume input argument to be string or any object representation # which converts into a formatted IP prefix string. address = _split_optional_netmask ( address ) # Constructing from a tuple (addr, [mask]) if len ( address ) > 1 : return address return address [ 0 ] , cls . _max_prefixlen