]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Rewrite code merging two dictionaries
authorVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 13:05:00 +0000 (15:05 +0200)
committerVictor Stinner <vstinner@redhat.com>
Fri, 12 Jun 2015 13:19:18 +0000 (15:19 +0200)
commit0256d88719ece09f9c376d859ba57f7ff459b5e1
tree98a67284840422940d857968bddeb3d9531047c1
parenta4f087b7a1050ac1a7e6391faa8d8003824c68ac
Rewrite code merging two dictionaries

Basically, replace dict(dict1.items() + dict2.items()) with
dict1.update(dict2) (and copy dict1 when needed).

This change adds Python 3 compatibility to the modified code.

Blueprint cinder-python3
Change-Id: I4f73efa0434f5c7ffba2dd966035762d197b9c68
cinder/context.py
cinder/volume/drivers/huawei/rest_common.py
cinder/volume/drivers/windows/vhdutils.py
cinder/volume/manager.py