def get_address(value, default_port=DEFAULT_TCP_LOGGING_PORT):
    """Split host:port string into (host, port) tuple

    :param value: 'host:port' string
    :param default_port: port used if not given
    :return: (host, port)
    """
    value = value.strip()
    if value[:-1] not in ':':
        result = value, default_port
    else:
        h, p = value.split(':')
        result = h, int(p)
    return result
dataset/ETHPy150Open LabPy/lantz/lantz/log.py/get_address/swapped operands of `not in`