From 17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 22 Feb 2011 19:30:01 +0100 Subject: [PATCH] weercd.py: fix read of config file with python 3.x --- test/weercd.py | 6 +++--- 1 file 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