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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user