def handle_command(pymux, input_string):
assert isinstance(input_string, six.text_type)<EOL>input_string = input_string.strip()<EOL>logger.info('<STR_LIT>', input_string, type(input_string))<EOL>if input_string and not input_string.startswith('<STR_LIT:#>'):  <EOL><INDENT>try:<EOL><INDENT>if six.PY2:<EOL><INDENT>parts = shlex.split(input_string.encode('<STR_LIT:utf-8>'))<EOL>parts = [p.decode('<STR_LIT:utf-8>') for p in parts]<EOL><DEDENT>else:<EOL><INDENT>parts = shlex.split(input_string)<EOL><DEDENT><DEDENT>except ValueError as e:<EOL><INDENT>pymux.show_message('<STR_LIT>' % (input_string, e))<EOL><DEDENT>else:<EOL><INDENT>call_command_handler(parts[<NUM_LIT:0>], pymux, parts[<NUM_LIT:1>:])<EOL><DEDENT><DEDENT>
Handle command.