Merge "Replace six.iteritems() with .items()"
This commit is contained in:
commit
6c26625116
@ -13,7 +13,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from six import iteritems
|
|
||||||
from six.moves import reduce
|
from six.moves import reduce
|
||||||
|
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
@ -97,7 +96,7 @@ class StaticDriver(DriverBase):
|
|||||||
def _pack_entity(cls, entities_dict, entity):
|
def _pack_entity(cls, entities_dict, entity):
|
||||||
static_id = entity[StaticFields.STATIC_ID]
|
static_id = entity[StaticFields.STATIC_ID]
|
||||||
if static_id not in entities_dict:
|
if static_id not in entities_dict:
|
||||||
metadata = {key: value for key, value in iteritems(entity)
|
metadata = {key: value for key, value in entity.items()
|
||||||
if key not in cls.BASE_FIELDS}
|
if key not in cls.BASE_FIELDS}
|
||||||
entities_dict[static_id] = entity
|
entities_dict[static_id] = entity
|
||||||
entity[StaticFields.RELATIONSHIPS] = []
|
entity[StaticFields.RELATIONSHIPS] = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user