def _split_optional_netmask(address):
    """Helper to split the netmask and raise AddressValueError if needed"""
    addr = str(address).split('/')
    if len(addr) > 2:
        raise AddressValueError("Only one '/' permitted in %r" % address)
    return addr
dataset/ETHPy150Open saltstack/salt/salt/ext/ipaddress.py/_split_optional_netmask/original