pysyncobj/transport.py
def _utilityCallback(self, res, err, conn, cmd, arg):
        """
        Callback for the utility messages

        :param res: result of the command
        :param err: error code (one of pysyncobj.config.FAIL_REASON)
        :param conn: utility connection
        :param cmd: command
        :param arg: command arguments
        """

        cmdResult = 'FAIL'
        if err == FAIL_REASON.SUCCESS:
            cmdResult = 'SUCCESS'
        conn.send(cmdResult + ' ' + cmd + ' ' + arg)
def _utilityCallback(self, res, err, conn, cmd, arg):
        cmdResult = 'FAIL'
        if err == FAIL_REASON.SUCCESS:
            cmdResult = 'SUCCESS'
        conn.send(cmdResult + ' ' + cmd + ' ' + arg)
def _utilityCallback ( self , res , err , conn , cmd , arg ) : cmdResult = 'FAIL' if err == FAIL_REASON . SUCCESS : cmdResult = 'SUCCESS' conn . send ( cmdResult + ' ' + cmd + ' ' + arg )
Callback for the utility messages

        :param res: result of the command
        :param err: error code (one of pysyncobj.config.FAIL_REASON)
        :param conn: utility connection
        :param cmd: command
        :param arg: command arguments
Callback for the utility messages