summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTom Powell <tpowell@cyngn.com>2016-01-04 12:05:01 -0800
committerDan Pasanen <invisiblek@cyanogenmod.org>2016-01-04 12:21:17 -0800
commitfc2297c9ebb0a5ee3f6cd276f48b3e6d7736df1c (patch)
treef911cf097ea4abf19b3487ff92a74187ce427847 /tools
parentfdc26cd560c2cd870f73fb44302dcff174048dbf (diff)
downloadbuild-fc2297c9ebb0a5ee3f6cd276f48b3e6d7736df1c.zip
build-fc2297c9ebb0a5ee3f6cd276f48b3e6d7736df1c.tar.gz
build-fc2297c9ebb0a5ee3f6cd276f48b3e6d7736df1c.tar.bz2
py3: update releasetools with proper print syntax
Change-Id: I48534a72e6559f60af5f9b1c09040b34b7575b63
Diffstat (limited to 'tools')
-rwxr-xr-xtools/releasetools/add_img_to_target_files.py2
-rwxr-xr-xtools/releasetools/ota_from_target_files.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/add_img_to_target_files.py b/tools/releasetools/add_img_to_target_files.py
index 899d265..b132963 100755
--- a/tools/releasetools/add_img_to_target_files.py
+++ b/tools/releasetools/add_img_to_target_files.py
@@ -223,7 +223,7 @@ def AddUserdataExtra(output_zip, prefix="IMAGES/"):
prebuilt_path = os.path.join(OPTIONS.input_tmp, prefix, "userdata_%s.img" % extra_name)
if os.path.exists(prebuilt_path):
- print "userdata_%s.img already exists in %s, no need to rebuild..." % (extra_name, prefix,)
+ print("userdata_%s.img already exists in %s, no need to rebuild..." % (extra_name, prefix,))
return
# We only allow yaffs to have a 0/missing partition_size.
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index 6e5124a..2beabe3 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -1715,7 +1715,7 @@ def main(argv):
cache_size = OPTIONS.info_dict.get("cache_size", None)
if cache_size is None:
- print "--- can't determine the cache partition size ---"
+ print("--- can't determine the cache partition size ---")
OPTIONS.cache_size = cache_size
if OPTIONS.incremental_source is None: