def unicode_escape_sequence_fix(self, value):
def fix_fn(match):<EOL><INDENT>if match.group(<NUM_LIT:0>) == r"<STR_LIT:\\>":<EOL><INDENT>return r"<STR_LIT:\\>"<EOL><DEDENT>return match.group(<NUM_LIT:0>).encode("<STR_LIT:utf-8>").decode("<STR_LIT>")<EOL><DEDENT>return re.sub(r"<STR_LIT>", fix_fn, value)<EOL>
It is possible to define unicode characters in the config either as the
actual utf-8 character or using escape sequences the following all will
show the Greek delta character.
Δ \N{GREEK CAPITAL LETTER DELTA} \U00000394  \u0394