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

This commit is contained in:
Jenkins 2016-12-02 16:38:22 +00:00 committed by Gerrit Code Review
commit 753ac91ec8

View File

@ -15,7 +15,6 @@
import os import os
import sys import sys
import six
import yaml import yaml
@ -39,7 +38,7 @@ def merge_data(source, destination, distro):
result = dict() result = dict()
result.update(destination) result.update(destination)
family = os_family(distro) family = os_family(distro)
for servicename, mapping in six.iteritems(source): for servicename, mapping in source.items():
if servicename in result: if servicename in result:
raise Exception("%s already found in services list" % servicename) raise Exception("%s already found in services list" % servicename)
if distro in mapping: if distro in mapping: