guacamole/instruction.py
def encode_arg(arg):
        """
        Encode argument to be sent in a valid GuacamoleInstruction.

        example:
        >> arg = encode_arg('size')
        >> arg == '4.size'
        >> True

        :param arg: arg string.

        :return: str
        """
        arg_utf8 = utf8(arg)

        return ELEM_SEP.join([str(len(str(arg_utf8))), str(arg_utf8)])
def encode_arg(arg):
        arg_utf8 = utf8(arg)

        return ELEM_SEP.join([str(len(str(arg_utf8))), str(arg_utf8)])
def encode_arg ( arg ) : arg_utf8 = utf8 ( arg ) return ELEM_SEP . join ( [ str ( len ( str ( arg_utf8 ) ) ) , str ( arg_utf8 ) ] )
Encode argument to be sent in a valid GuacamoleInstruction.

        example:
        >> arg = encode_arg('size')
        >> arg == '4.size'
        >> True

        :param arg: arg string.

        :return: str
Encode argument to be sent in a valid GuacamoleInstruction .