Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2018-09-23 17:31:54 +0300
committerAndrei Vagin <avagin@gmail.com>2018-10-30 19:28:14 +0300
commitc36b5dab05d7c5a7f95641379d3e12ac3dd6a861 (patch)
treec6f881efce15b32fe13fc9e6dc8100e8c87739c7 /test/others/mounts
parent7064cbaa350a6eb5029e71490897b7a3f6750051 (diff)
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>
Diffstat (limited to 'test/others/mounts')
-rwxr-xr-xtest/others/mounts/mounts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/others/mounts/mounts.py b/test/others/mounts/mounts.py
index 474feed41..dc65ba45c 100755
--- a/test/others/mounts/mounts.py
+++ b/test/others/mounts/mounts.py
@@ -23,7 +23,7 @@ root = tempfile.mkdtemp(prefix = "root.mount", dir = "/tmp")
mount(None, root, 1, 0, 0)
mounts = [root]
-for i in xrange(10):
+for i in range(10):
dstdir = random.choice(mounts)
dst = tempfile.mkdtemp(prefix = "mount", dir = dstdir)
src = random.choice(mounts + [None])