Fix code syntax to become compatible with py3

Change-Id: I3ea7a94389ba5204d5b26e54cc209ffda0af53c8
This commit is contained in:
Ilya Shakhat 2019-12-18 09:20:13 +01:00
parent 1e429e3978
commit 7c34f87b0d
1 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,10 @@ def read_json_from_uri(uri):
def make_range(start, stop, step):
last_full = stop - ((stop - start) % step)
for i in xrange(start, last_full, step):
yield xrange(i, i + step)
for i in six.moves.range(start, last_full, step):
yield six.moves.range(i, i + step)
if stop > last_full:
yield xrange(last_full, stop)
yield six.moves.range(last_full, stop)
def store_user(runtime_storage_inst, user):