diff options
author | lassulus <lassulus@googlemail.com> | 2013-12-19 01:49:43 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-12-19 01:49:43 +0100 |
commit | 5083bed0ca1fa61436dab03d5df5036ef92355af (patch) | |
tree | 3117f01b9b140d6e96c8a7d143826bf5d99bbafd /IRC/translate_colors.py | |
parent | 7bc0b23e97a23eaf509dfcca193ee77eee693073 (diff) |
Reaktor/IRC: encode/decode harder/better/faster
Diffstat (limited to 'IRC/translate_colors.py')
-rw-r--r-- | IRC/translate_colors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IRC/translate_colors.py b/IRC/translate_colors.py index 3ea34be..bd71661 100644 --- a/IRC/translate_colors.py +++ b/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__": |