mirror of https://github.com/cowrie/cowrie.git
asciinema python3 compatible
This commit is contained in:
parent
7fac536b6a
commit
d52886098e
|
@ -67,7 +67,7 @@ def playlog(fd, settings):
|
|||
# causes mangling of the data due to
|
||||
# newlines being misinterpreted without
|
||||
# carriage returns.
|
||||
data = data.replace("\n", "\r\n")
|
||||
data = data.replace(b"\n", b"\r\n").decode('UTF-8')
|
||||
|
||||
thedata = [sleeptime, data]
|
||||
thelog['duration'] += sleeptime
|
||||
|
|
Loading…
Reference in New Issue