mirror of
https://github.com/gryf/wicd.git
synced 2026-03-24 20:53:33 +01:00
Remaining needed changes to get the daemon running with Python 3
This commit is contained in:
@@ -53,7 +53,7 @@ class LogFile(io.FileIO):
|
|||||||
if len(data) <= 0:
|
if len(data) <= 0:
|
||||||
return
|
return
|
||||||
if self.eol:
|
if self.eol:
|
||||||
super(LogFile, self).write(self.get_time() + ' :: ')
|
super(LogFile, self).write(self.get_time().encode("utf-8") + b' :: ')
|
||||||
self.eol = False
|
self.eol = False
|
||||||
|
|
||||||
if data[-1] == '\n':
|
if data[-1] == '\n':
|
||||||
@@ -61,7 +61,7 @@ class LogFile(io.FileIO):
|
|||||||
data = data[:-1]
|
data = data[:-1]
|
||||||
|
|
||||||
super(LogFile, self).write(data.replace(
|
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:
|
if self.eol:
|
||||||
super(LogFile, self).write('\n')
|
super(LogFile, self).write('\n')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user