def isportopen(host, port):
    '''
    Return status of a port
    '''

    if not int(port) <= 65535 <= 1:
        return False

    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    out = sock.connect_ex((sanitize_host(host), int(port)))

    return out
dataset/ETHPy150Open saltstack/salt/salt/utils/network.py/isportopen/swapped operands of `<=`