From c1c26d81121457b18ec42b3eac342f51d7587512 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Wed, 11 Sep 2019 02:43:20 +0200 Subject: [PATCH] Remaining needed changes to get the daemon running with Python 3 --- wicd/logfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wicd/logfile.py b/wicd/logfile.py index 65a3f03..9a38687 100644 --- a/wicd/logfile.py +++ b/wicd/logfile.py @@ -53,7 +53,7 @@ class LogFile(io.FileIO): if len(data) <= 0: return if self.eol: - super(LogFile, self).write(self.get_time() + ' :: ') + super(LogFile, self).write(self.get_time().encode("utf-8") + b' :: ') self.eol = False if data[-1] == '\n': @@ -61,7 +61,7 @@ class LogFile(io.FileIO): data = data[:-1] super(LogFile, self).write(data.replace( - '\n', '\n' + self.get_time() + ' :: ')) + b'\n', b'\n' + self.get_time().encode("utf-8") + b' :: ')) if self.eol: super(LogFile, self).write('\n')