diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-02-22 19:30:01 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-02-22 19:30:01 +0100 |
commit | 17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0 (patch) | |
tree | be73d88f150d992fc509fe0f40dcba7f22d867e5 | |
parent | 4680ae40b6c668134e40c2244b2f1f6ec7f1e998 (diff) | |
download | weechat-17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0.zip |
weercd.py: fix read of config file with python 3.x
-rwxr-xr-x | test/weercd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/weercd.py b/test/weercd.py index c4837b569..a1abe5e9c 100755 --- a/test/weercd.py +++ b/test/weercd.py @@ -52,8 +52,8 @@ import sys, socket, select, time, random, string -NAME = 'weercd' -VERSION = '0.1' +NAME = 'weercd' +VERSION = '0.2' options = { 'host' : ['', 'Host for socket bind'], @@ -113,7 +113,7 @@ def readconfig(filename): try: lines = open(filename, 'rb').readlines() for line in lines: - setoption(line) + setoption(str(line.decode('utf-8'))) except: pass |