summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/edify_generator.py
diff options
context:
space:
mode:
authorAnthony King <anthonydking@slimroms.net>2015-11-03 00:23:11 +0000
committerTom Powell <tpowell@cyngn.com>2016-01-04 11:09:01 -0800
commitc713d764c53e439352e79076eeecdbed9b2ccd6c (patch)
treeec2c6e1f7d912a03442405d8fa28cf23de9d889b /tools/releasetools/edify_generator.py
parent12b55e8654520aac7cb466e7c149a11a48cc3b0e (diff)
downloadbuild-c713d764c53e439352e79076eeecdbed9b2ccd6c.zip
build-c713d764c53e439352e79076eeecdbed9b2ccd6c.tar.gz
build-c713d764c53e439352e79076eeecdbed9b2ccd6c.tar.bz2
py3: update all the things
Change-Id: I5e11b46b7c2f7f8760d6c0e713ca99c1e88b7cd3
Diffstat (limited to 'tools/releasetools/edify_generator.py')
-rw-r--r--tools/releasetools/edify_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py
index e3425bf..80b8a44 100644
--- a/tools/releasetools/edify_generator.py
+++ b/tools/releasetools/edify_generator.py
@@ -145,7 +145,7 @@ class EdifyGenerator(object):
", ".join(["%s" % (b,) for b in basebands]) +
'; this device has baseband " + getprop("ro.baseband") + ".");' +
");")
- self.script.append(self._WordWrap(cmd))
+ self.script.append(self.WordWrap(cmd))
def RunBackup(self, command):
self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s");' % command))
@@ -372,7 +372,7 @@ class EdifyGenerator(object):
for d, l in symlink_list:
by_dest.setdefault(d, []).append(l)
- for dest, links in sorted(by_dest.iteritems()):
+ for dest, links in sorted(by_dest.items()):
cmd = ('symlink("%s", ' % (dest,) +
",\0".join(['"' + i + '"' for i in sorted(links)]) + ");")
self.script.append(self.WordWrap(cmd))