]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace dict(obj.iteritems() with dict(obj)
authorVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 12:55:37 +0000 (14:55 +0200)
committerVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 13:19:18 +0000 (15:19 +0200)
commita4f087b7a1050ac1a7e6391faa8d8003824c68ac
treeb83728827b33784f94e0da1ee86a1562e5c381f1
parent55eca11e07b2f82beeaef24e2f969fa7f44621cf
Replace dict(obj.iteritems() with dict(obj)

Since oslo.db 1.10, it's possible to convert directly a SQLAlchemy
object to a dictionary using dict(obj) instead of having to write
dict(obj.iteritems()).

dict(obj) works also on regular dictionaries to duplicate a dictionary.

Blueprint cinder-python3
Change-Id: I868a055d5bbfe6646aad3e36e1bf6c7a1ad7b449
15 files changed:
cinder/api/contrib/backups.py
cinder/api/contrib/cgsnapshots.py
cinder/api/contrib/consistencygroups.py
cinder/api/contrib/volume_image_metadata.py
cinder/api/contrib/volume_manage.py
cinder/api/contrib/volume_transfer.py
cinder/api/v1/volumes.py
cinder/api/v2/volumes.py
cinder/backup/api.py
cinder/consistencygroup/api.py
cinder/db/sqlalchemy/api.py
cinder/scheduler/host_manager.py
cinder/tests/unit/test_volume.py
cinder/transfer/api.py
cinder/volume/api.py