2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

criu-ns: Convert to python3 style print() syntax

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
This commit is contained in:
Radostin Stoyanov
2019-04-07 20:41:37 +01:00
committed by Andrei Vagin
parent 72ca9673de
commit 26371e56f0

View File

@@ -57,7 +57,7 @@ else:
def run_criu():
print sys.argv
print(sys.argv)
os.execlp('criu', *['criu'] + sys.argv[1:])
@@ -155,7 +155,7 @@ def set_pidns(tpid, pid_idx):
if ls[1] != tpid:
raise OSError(errno.ESRCH, 'No such pid')
print 'Replace pid %s with %s' % (tpid, ls[2])
print('Replace pid {} with {}'.format(tpid, ls[2]))
sys.argv[pid_idx] = ls[2]
break
else:
@@ -234,7 +234,7 @@ if action == 'restore':
elif action == 'dump' or action == 'pre-dump':
res = wrap_dump()
else:
print 'Unsupported action %s for nswrap' % action
print('Unsupported action {} for nswrap'.format(action))
res = -1
sys.exit(res)