1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

weercd.py: fix read of config file with python 3.x

This commit is contained in:
Sebastien Helleu
2011-02-22 19:30:01 +01:00
parent 4680ae40b6
commit 17ae0dc592
+3 -3
View File
@@ -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