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:
Radostin Stoyanov 2018-09-23 15:31:54 +01:00 committed by Andrei Vagin
parent 791352188b
commit 98abfc9d6a

View file

@ -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