mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
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>
This commit is contained in:
@@ -26,6 +26,7 @@ import signal
|
||||
import subprocess
|
||||
import re
|
||||
|
||||
from six.moves import range
|
||||
import six.moves.xmlrpc_client
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user