]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace dit.itervalues() with dict.values()
authorVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 13:21:09 +0000 (15:21 +0200)
committerVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 13:21:09 +0000 (15:21 +0200)
commit3fabed9d64696a204263fd7e00b65115a8ecce87
tree94e38fd6aac9bdf3c96600e6edc29c3296deebab
parent28c52a82a21082db23ad4b4505bf313459366549
Replace dit.itervalues() with dict.values()

This change adds Python 3 compatibility to the modified code.

The itervalues() method of Python 2 dictionaries was renamed to values() on
Python 3. As discussed on the openstack-dev mailing list, itervalues() must be
replaced with values(), six.itervalues() should not be used. In OpenStack, the
overhead of creating a temporary list with dict.values() on Python 2 is
negligible.

Blueprint cinder-python3

Change-Id: Ibcf4597aeef1835f08bee2d6831205c428884c31
cinder/backup/manager.py
cinder/db/sqlalchemy/api.py
cinder/scheduler/host_manager.py
cinder/tests/unit/test_ibm_flashsystem.py
cinder/tests/unit/test_storwize_svc.py
cinder/volume/drivers/datera.py
cinder/volume/drivers/emc/scaleio.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/throttling.py