nova/nova
Victor Stinner b259659a22 Use six.moves.range for Python 3
The function xrange() was renamed to range() in Python 3.

Use "from six.moves import range" to get xrange() on Python 2 and range() on
Python 3 as the name "range", and replace "xrange()" with "range()".

The import is omitted for small ranges (1024 items or less).

This patch was generated by the following tool (revision 0c1d096b3903)
with the "xrange" operation:
https://bitbucket.org/haypo/misc/src/tip/python/sixer.py

Manual change:

* Replace range(n) with list(range(n)) in a loop of
  nova/virt/libvirt/driver.py which uses list.pop()

Blueprint nova-python3
Change-Id: Iceda35cace04cc8ddc6adbd59df4613b22b39793
2015-05-20 15:19:51 -07:00
..
CA Make tests use sha256 as openssl default digest algorithm 2015-02-09 10:06:04 -05:00
api Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
cells Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
cert Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
cloudpipe Move policy enforcement into REST API layer for v2.1 cloudpipe 2015-02-26 21:33:47 +08:00
cmd Merge "Removed variables used not in the scope that they are declared" 2015-04-29 23:39:54 +00:00
compute Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
conductor Delete shelved_* keys in n-cpu unshelve call 2015-05-13 23:50:51 -07:00
console Merge "Update rpc version aliases for kilo" 2015-04-27 13:17:34 +00:00
consoleauth Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
db Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
hacking hacking: remove unused variable author_tag_re 2015-05-10 18:53:45 +08:00
image Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
ipv6 Replace usage of LazyPluggable by stevedore driver 2015-02-17 14:49:48 +00:00
keymgr Switch to uuidutils from oslo_utils library 2015-02-25 20:05:49 -05:00
locale Imported Translations from Transifex 2015-05-02 06:19:07 +00:00
network Merge "Replace dict.itervalues() with six.itervalues(dict)" 2015-05-19 08:10:40 +00:00
objects Merge "objects: convert HVSpec to use named enums" 2015-05-18 14:53:23 +00:00
objectstore Deprecate Nova in tree EC2 APIs 2015-03-12 17:48:06 -04:00
openstack sync oslo: service child process normal SIGTERM exit 2015-04-23 10:40:34 -04:00
pci Add equality operators to PciDeviceStats and PciDevice objects 2015-04-20 23:49:32 +03:00
rdp Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
scheduler Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
servicegroup servicegroup: remove get_all method never used as public 2015-05-07 03:50:05 -04:00
spice Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
storage Fix multipath device discovery when UFN is enabled. 2015-04-02 13:23:49 +01:00
tests Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
virt Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
vnc Use oslo.log 2015-02-22 07:56:40 -05:00
volume Fix raise syntax for Python 3 2015-05-13 11:26:35 +02:00
wsgi Helper scripts for running under Apache2 2015-05-08 09:59:58 -04:00
__init__.py
availability_zones.py Merge "consoliate set_availability_zones usage" 2015-03-23 06:52:46 +00:00
baserpc.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
block_device.py Replace iter.next() with next(iter) 2015-05-13 11:17:05 +02:00
config.py Disable oslo_messaging debug logging 2015-03-19 11:23:05 -07:00
context.py Stop spamming logs when creating context 2015-03-13 17:59:47 -04:00
crypto.py Merge "Fixes X509 keypair creation failure" 2015-04-29 19:05:38 +00:00
debugger.py Use oslo.log 2015-02-22 07:56:40 -05:00
exception.py Merge "objects: introduce BaseEnumField to allow subclassing" 2015-05-15 17:39:04 +00:00
filters.py Use oslo.log 2015-02-22 07:56:40 -05:00
hooks.py Use oslo.log 2015-02-22 07:56:40 -05:00
i18n.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
loadables.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
manager.py Use oslo.log 2015-02-22 07:56:40 -05:00
netconf.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
notifications.py Be more forgiving to empty context in notification 2015-03-31 00:00:46 +00:00
paths.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
policy.py Add useful debug logging when policy checks fail 2015-02-23 16:44:04 -05:00
quota.py Add some logging in the quota.reserve flow 2015-03-25 14:58:04 -07:00
rpc.py Merge "Ensure publisher_id is set correctly in notifications" 2015-02-10 04:50:54 +00:00
safe_utils.py Avoid indexing into an empty list in getcallargs 2015-04-10 13:10:16 -04:00
service.py Convert service and servicegroup to objects 2015-04-13 19:05:55 +02:00
test.py Replace iter.next() with next(iter) 2015-05-13 11:17:05 +02:00
utils.py Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
version.py Merge "remove duplicate calls to cfg.get()" 2015-03-18 19:13:55 +00:00
weights.py Skip only one host weight calculation 2015-05-05 11:40:09 +08:00
wsgi.py create noauth2 2015-03-04 08:09:01 -05:00