def send_reply_to_client(self, clientreplycode, givenresult, command):
        if self.debug: self.logger.write("State", "Sending REPLY to CLIENT")
        clientreply = create_message(MSG_CLIENTREPLY, self.me,
                                     {FLD_REPLY: givenresult,
                                      FLD_REPLYCODE: clientreplycode,
                                      FLD_INRESPONSETO: command.clientcommandnumber})
        if self.debug: self.logger.write("State", str(clientreply) % "Clientreply: %s")
        clientconn = self.connectionpool.get_connection_by_peer(command.client)
        if clientconn == None or clientconn.thesocket == None:
            if self.debug: self.logger.write("State", "Client connection does not exist.")
            return
        clientconn.send(clientreply)
dataset/ETHPy150Open denizalti/concoord/concoord/replica.py/Replica.send_reply_to_client/swapped operands of `%`