Reviewed: https://review.openstack.org/336346 Committed: https://git.openstack.org/cgit/openstack/fuel-stats/commit/?id=a3102f6fc61934f61c2a8a7a85024a0a2613f272 Submitter: Jenkins Branch: master
commit a3102f6fc61934f61c2a8a7a85024a0a2613f272 Author: Ji-Wei <email address hidden> Date: Fri Jul 1 11:10:46 2016 +0800
Make xrange py3 compatible
In py3 , Xrange is renamed to range, so it needs to be modified to make it compatible. the code: print (xrange(5)) Traceback (most recent call last): File "code", line 4, in <module> print (xrange(5)) NameError: name 'xrange' is not defined.
Change-Id: I3a0e22876c35ced5c961c092fcda25db33d1c599 Closes-Bug: #1596127
Reviewed: https:/ /review. openstack. org/336346 /git.openstack. org/cgit/ openstack/ fuel-stats/ commit/ ?id=a3102f6fc61 934f61c2a8a7a85 024a0a2613f272
Committed: https:/
Submitter: Jenkins
Branch: master
commit a3102f6fc61934f 61c2a8a7a85024a 0a2613f272
Author: Ji-Wei <email address hidden>
Date: Fri Jul 1 11:10:46 2016 +0800
Make xrange py3 compatible
In py3 ,
Xrange is renamed to range,
so it needs to be modified to make it compatible.
the code:
print (xrange(5))
Traceback (most recent call last):
File "code", line 4, in <module>
print (xrange(5))
NameError: name 'xrange' is not defined.
Change-Id: I3a0e22876c35ce d5c961c092fcda2 5db33d1c599
Closes-Bug: #1596127