def _escape_char(c, escape_char=ESCAPE_CHAR):
buf = []<EOL>for byte in c.encode('<STR_LIT:utf8>'):<EOL><INDENT>buf.append(escape_char)<EOL>buf.append('<STR_LIT>' % _ord(byte))<EOL><DEDENT>return '<STR_LIT>'.join(buf)<EOL>
Escape a single character