python: Stop using xrange().
authorRussell Bryant <russell@ovn.org>
Mon, 14 Dec 2015 19:33:52 +0000 (14:33 -0500)
committerRussell Bryant <russell@ovn.org>
Wed, 20 Jan 2016 21:43:54 +0000 (16:43 -0500)
commitb3ac29477d493d9442f39c734a0a9ebaa223c308
tree1dd0186dbed74cb0f9232b318dbd7cc9d6f72f2c
parent73eb682edb67f44aead7f2c70e9e8777e87df898
python: Stop using xrange().

Python 2 had range() and xrange().  xrange() is more efficient, but
behaves differently so range() was retained for compatibility.  Python 3
only has range() and it behaves like Python 2's xrange().

Remove explicit use of xrange() and use six.moves.range() to
make sure we're using xrange() from Python 2 or range() from Python 3.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
debian/ovs-monitor-ipsec
python/ovs/json.py
python/ovs/ovsuuid.py
python/ovs/socket_util.py
python/ovs/unixctl/server.py
python/ovs/vlog.py
python/ovstest/util.py
tests/test-vlog.py
vtep/ovs-vtep