def sanitize_type(raw_type):
cleaned = get_printable(raw_type).strip()<EOL>for bad in [<EOL>r'<STR_LIT>', r'<STR_LIT>',<EOL>r'<STR_LIT>',<EOL>r'<STR_LIT>',<EOL>r'<STR_LIT>',<EOL>r'<STR_LIT>', r'<STR_LIT>', r'<STR_LIT>',<EOL>r'<STR_LIT>'<EOL>]:<EOL><INDENT>cleaned = re.sub(bad, '<STR_LIT>', cleaned).strip()<EOL><DEDENT>if cleaned in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>cleaned = cleaned.strip('<STR_LIT:_>')<EOL><DEDENT>cleaned = cleaned.replace('<STR_LIT>', '<STR_LIT:*>')<EOL>return cleaned<EOL>
Sanitize the raw type string.