def cleanup_text (text):
x = "<STR_LIT:U+0020>".join(map(lambda s: s.strip(), text.split("<STR_LIT:\n>"))).strip()<EOL>x = x.replace('<STR_LIT>', '<STR_LIT:">').replace('<STR_LIT>', '<STR_LIT:">')<EOL>x = x.replace("<STR_LIT>", "<STR_LIT:'>").replace("<STR_LIT>", "<STR_LIT:'>").replace("<STR_LIT>", "<STR_LIT:'>")<EOL>x = x.replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT:->')<EOL>x = str(unicodedata.normalize('<STR_LIT>', x).encode('<STR_LIT:ascii>', '<STR_LIT:ignore>').decode('<STR_LIT:ascii>'))<EOL>try:<EOL><INDENT>assert type(x).__name__ == '<STR_LIT:str>'<EOL><DEDENT>except AssertionError:<EOL><INDENT>print("<STR_LIT>", type(line), line)<EOL><DEDENT>return x<EOL>
It scrubs the garbled from its stream...
Or it gets the debugger again.