mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
lib: fix broken crit-recode test
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
committed by
Andrei Vagin
parent
0ca36c95ee
commit
fa9acb9dc7
@@ -356,8 +356,12 @@ class tcp_stream_extra_handler:
|
||||
return d
|
||||
|
||||
def dump(self, extra, f, _unused):
|
||||
inq = base64.decodebytes(extra['inq'])
|
||||
outq = base64.decodebytes(extra['outq'])
|
||||
if (sys.version_info > (3, 0)):
|
||||
inq = base64.decodebytes(str.encode(extra['inq']))
|
||||
outq = base64.decodebytes(str.encode(extra['outq']))
|
||||
else:
|
||||
inq = base64.decodebytes(extra['inq'])
|
||||
outq = base64.decodebytes(extra['outq'])
|
||||
|
||||
f.write(inq)
|
||||
f.write(outq)
|
||||
|
Reference in New Issue
Block a user