guacamole/instruction.py
def load(cls, instruction):
        """
        Loads a new GuacamoleInstruction from encoded instruction string.

        :param instruction: Instruction string.

        :return: GuacamoleInstruction()
        """
        if not instruction.endswith(INST_TERM):
            raise InvalidInstruction('Instruction termination not found.')

        args = cls.decode_instruction(instruction)

        return cls(args[0], *args[1:])
def load(cls, instruction):
        if not instruction.endswith(INST_TERM):
            raise InvalidInstruction('Instruction termination not found.')

        args = cls.decode_instruction(instruction)

        return cls(args[0], *args[1:])
def load ( cls , instruction ) : if not instruction . endswith ( INST_TERM ) : raise InvalidInstruction ( 'Instruction termination not found.' ) args = cls . decode_instruction ( instruction ) return cls ( args [ 0 ] , * args [ 1 : ] )
Loads a new GuacamoleInstruction from encoded instruction string.

        :param instruction: Instruction string.

        :return: GuacamoleInstruction()
Loads a new GuacamoleInstruction from encoded instruction string .