]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: Use range() rather than xrange()
authorPaul Burton <paul.burton@imgtec.com>
Thu, 14 Sep 2017 21:34:44 +0000 (14:34 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 10 Jul 2018 20:50:50 +0000 (14:50 -0600)
commit9140ec162f8c1e5865dfcf0cacb652e708e2a640
tree2ed0c97c155bd3e8b342034fe3031019b9d7c051
parentf053ce37cb09491c487825cf739175286e139bed
test/py: Use range() rather than xrange()

In python 3.x the xrange() function has been removed, and range()
returns an iterator much like Python 2.x's xrange(). Simply use range()
in place of xrange() in order to work on both python 2.x & 3.x. This
will mean a small cost on python 2.x since range() will return a list
there rather than an iterator, but the cost should be negligible.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
test/py/u_boot_console_sandbox.py
test/py/u_boot_spawn.py
test/py/u_boot_utils.py