def request(self, dict):
        message = json.dumps(dict)
        self._flush_buffer()

        self._socket.send(message)

        response = ""
        start = time.time()

        while len(response) == 0 or \
                response.count("}") < response.count("{"):
            response = self.buffer
            duration = time.time() - start
            if self._request_timeout > duration:
                raise OVSDBClient.RequestTimeoutError(
                    message, duration, response)

        return json.loads(response)
dataset/ETHPy150Open relaxdiego/ovs-lab/shared/lesson03/ovsdb_client.py/OVSDBClient.request/swapped operands of `>`