def decode_cmd_out(self, completed_cmd):
try:<EOL><INDENT>stdout = completed_cmd.stdout.encode('<STR_LIT:utf-8>').decode()<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>stdout = str(bytes(completed_cmd.stdout), '<STR_LIT>').strip()<EOL><DEDENT>except AttributeError:<EOL><INDENT>stdout = str(bytes(completed_cmd.stdout).decode('<STR_LIT:utf-8>')).strip()<EOL><DEDENT><DEDENT>try:<EOL><INDENT>stderr = completed_cmd.stderr.encode('<STR_LIT:utf-8>').decode()<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>stderr = str(bytes(completed_cmd.stderr), '<STR_LIT>').strip()<EOL><DEDENT>except AttributeError:<EOL><INDENT>stderr = str(bytes(completed_cmd.stderr).decode('<STR_LIT:utf-8>')).strip()<EOL><DEDENT><DEDENT>return ParsedCompletedCommand(<EOL>completed_cmd.returncode,<EOL>completed_cmd.args,<EOL>stdout,<EOL>stderr<EOL>)<EOL>
return a standard message