summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC/translate_colors.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-12-19 01:49:43 +0100
committerlassulus <lassulus@googlemail.com>2013-12-19 01:49:43 +0100
commitec557236d0482a9f9285f803e1828d5f555e9ac8 (patch)
treecfb2da6ef1eecfb8501154908819041d7302d9fd /Reaktor/IRC/translate_colors.py
parent19a51b7462dea61483c52e941c5d5d7d69ee21bb (diff)
Reaktor/IRC: encode/decode harder/better/faster
Diffstat (limited to 'Reaktor/IRC/translate_colors.py')
-rw-r--r--Reaktor/IRC/translate_colors.py2
1 files changed, 1 insertions, 1 deletions
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__":