summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-02-22 19:30:01 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-02-22 19:30:01 +0100
commit17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0 (patch)
treebe73d88f150d992fc509fe0f40dcba7f22d867e5
parent4680ae40b6c668134e40c2244b2f1f6ec7f1e998 (diff)
downloadweechat-17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0.zip
weercd.py: fix read of config file with python 3.x
-rwxr-xr-xtest/weercd.py6
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