diff options
author | lassulus <lassulus@googlemail.com> | 2013-12-16 16:23:12 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-12-16 16:23:12 +0100 |
commit | 8e7f6b0c15db735fd289b304cb9fa5337f53c4fc (patch) | |
tree | 2884f85bdc90e1d68427239744f5fe95c3fa2d3e /Reaktor/IRC/translate_colors.py | |
parent | 2c4426db77bfb4531d50418add76c98940c5181f (diff) |
Reaktor/IRC: use config.json (and python3ize)
Diffstat (limited to 'Reaktor/IRC/translate_colors.py')
-rw-r--r-- | Reaktor/IRC/translate_colors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Reaktor/IRC/translate_colors.py b/Reaktor/IRC/translate_colors.py index bd716618..3ea34be6 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,replace) + line = line.replace(color.encode(encoding='UTF-8'),replace.encode(encoding='UTF-8')) return line if __name__ == "__main__": |