nova/nova/cells
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
..
filters Use oslo.log 2015-02-22 07:56:40 -05:00
weights Scheduler: deprecate mute_weight_value option on weigher 2015-03-30 14:38:39 -04:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
driver.py Port to oslo.messaging 2014-02-01 09:53:24 +00:00
manager.py Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
messaging.py Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
opts.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
rpc_driver.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
rpcapi.py Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
scheduler.py Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
state.py Replace dict.itervalues() with six.itervalues(dict) 2015-05-12 12:21:46 +02:00
utils.py Rename _CellProxy.iteritems method to items on py3 2015-05-12 09:19:11 +02:00