Merge "Replace six.iteritems() with .items()"

This commit is contained in:
Jenkins 2017-07-05 13:58:02 +00:00 committed by Gerrit Code Review
commit 6c26625116
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@
# under the License.
from itertools import chain
from six import iteritems
from six.moves import reduce
from oslo_log import log
@ -97,7 +96,7 @@ class StaticDriver(DriverBase):
def _pack_entity(cls, entities_dict, entity):
static_id = entity[StaticFields.STATIC_ID]
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}
entities_dict[static_id] = entity
entity[StaticFields.RELATIONSHIPS] = []