From 98abfc9d6a7ef80565a048d30a1ec0e81fb7dfeb Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sun, 23 Sep 2018 15:31:54 +0100 Subject: [PATCH] python: Replace xrange with range In Py2 `range` returns a list and `xrange` creates a sequence object that evaluates lazily. In Py3 `range` is equivalent to `xrange` in Py2. Signed-off-by: Radostin Stoyanov Signed-off-by: Andrei Vagin --- scripts/criu-ns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/criu-ns b/scripts/criu-ns index e7ebbf0ca..0910f2a33 100755 --- a/scripts/criu-ns +++ b/scripts/criu-ns @@ -124,7 +124,7 @@ def wrap_restore(): def get_varg(args): - for i in xrange(1, len(sys.argv)): + for i in range(1, len(sys.argv)): if not sys.argv[i] in args: continue