Python 3 compatibility: fix xrange/range issues

xrange is not defined in python3. update it to range.

Change-Id: I5de140e4107980383682138b53973488f92fa54e
Closes-Bug: #1797768
This commit is contained in:
zhulingjie 2018-10-07 22:58:21 -04:00
parent 033b03fa19
commit 9d2d21e4c1
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ class TestController(unittest.TestCase):
return c
c = ARoot
for n in xrange(55):
for n in range(55):
subc = make_subcontrollers(n)
c.sub = subc()
c = subc

View File

@ -159,7 +159,7 @@ class TestController(testutil.TGTest):
return c
c = ARoot
for n in xrange(55):
for n in range(55):
subc = make_subcontrollers(n)
c.sub = subc()
c = subc