Merge "Replace six.iteritems() with .items()"
This commit is contained in:
commit
753ac91ec8
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user