change iteritems to items method

'items' is available in both python3.4 and python2.7 so we use that.

Change-Id: Ie59936fd0bb19ab8408127376de9af2d0e4ef235
This commit is contained in:
Matthew Thode
2016-03-19 01:30:54 -05:00
parent a064aa2727
commit 2c28aee9c7

View File

@@ -63,7 +63,7 @@ def install(source_file, target_file, mode='0755', replacements=dict()):
log.error("Failed to install %s!" % source_file)
sys.exit(ret)
for k, v in replacements.iteritems():
for k, v in replacements.items():
log.info("Replacing %s -> %s in %s" % (k, v, target_file))
cmd = 'sed -i "s|%%{k}%%|{v}|g" {target_file}'.format(