asciinema python3 compatible

This commit is contained in:
Michel Oosterhof 2017-07-03 11:40:21 +00:00
parent 7fac536b6a
commit d52886098e
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def playlog(fd, settings):
# causes mangling of the data due to # causes mangling of the data due to
# newlines being misinterpreted without # newlines being misinterpreted without
# carriage returns. # carriage returns.
data = data.replace("\n", "\r\n") data = data.replace(b"\n", b"\r\n").decode('UTF-8')
thedata = [sleeptime, data] thedata = [sleeptime, data]
thelog['duration'] += sleeptime thelog['duration'] += sleeptime