From ec557236d0482a9f9285f803e1828d5f555e9ac8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 19 Dec 2013 01:49:43 +0100 Subject: Reaktor/IRC: encode/decode harder/better/faster --- Reaktor/IRC/translate_colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Reaktor/IRC/translate_colors.py') diff --git a/Reaktor/IRC/translate_colors.py b/Reaktor/IRC/translate_colors.py index 3ea34be6..bd716618 100644 --- a/Reaktor/IRC/translate_colors.py +++ b/Reaktor/IRC/translate_colors.py @@ -23,7 +23,7 @@ COLOR_MAP = { } def translate_colors (line): for color,replace in COLOR_MAP.items(): - line = line.replace(color.encode(encoding='UTF-8'),replace.encode(encoding='UTF-8')) + line = line.replace(color,replace) return line if __name__ == "__main__": -- cgit v1.2.3