def slugify(text, sep='<STR_LIT:->'):
text = stringify(text)<EOL>if text is None:<EOL><INDENT>return None<EOL><DEDENT>text = text.replace(sep, WS)<EOL>text = normalize(text, ascii=True)<EOL>if text is None:<EOL><INDENT>return None<EOL><DEDENT>return text.replace(WS, sep)<EOL>
A simple slug generator.