diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2018-09-23 17:31:54 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2018-10-30 19:28:14 +0300 |
commit | c36b5dab05d7c5a7f95641379d3e12ac3dd6a861 (patch) | |
tree | c6f881efce15b32fe13fc9e6dc8100e8c87739c7 /test/others/mounts | |
parent | 7064cbaa350a6eb5029e71490897b7a3f6750051 (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-x | test/others/mounts/mounts.py | 2 |
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]) |