mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 10:38:06 +00:00
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 <rstoyanov1@gmail.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
791352188b
commit
98abfc9d6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue