playlog Python3 compatible

This commit is contained in:
Michel Oosterhof 2017-07-03 11:42:38 +00:00
parent d52886098e
commit 5d933240ed
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def playlog(fd, settings):
prevtime = curtime
if settings['colorify'] and color:
sys.stdout.write(color)
sys.stdout.write(data)
sys.stdout.write(data.decode('UTF-8'))
if settings['colorify'] and color:
sys.stdout.write('\033[0m')
color = None