def clean_ret_type(ret_type):
ret_type = get_printable(ret_type).strip()<EOL>if ret_type == '<STR_LIT>':<EOL><INDENT>ret_type = '<STR_LIT>'<EOL><DEDENT>for bad in [<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>'<EOL>]:<EOL><INDENT>if bad in ret_type:<EOL><INDENT>ret_type = ret_type.replace(bad, '<STR_LIT>').strip()<EOL>logging.debug(_('<STR_LIT>'), bad)<EOL><DEDENT><DEDENT>return ret_type<EOL>
Clean the erraneous parsed return type.