[Console] Ensure time string is unicode
This commit is contained in:
parent
4c0be7ddd4
commit
c655da38c8
@ -607,6 +607,8 @@ class EventLog(component.Component):
|
|||||||
|
|
||||||
if date_different:
|
if date_different:
|
||||||
string = time.strftime(self.date_change_format)
|
string = time.strftime(self.date_change_format)
|
||||||
|
if deluge.common.PY2:
|
||||||
|
string = string.decode()
|
||||||
self.console.write_event(' ')
|
self.console.write_event(' ')
|
||||||
self.console.write_event(string)
|
self.console.write_event(string)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user