From fc2297c9ebb0a5ee3f6cd276f48b3e6d7736df1c Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Mon, 4 Jan 2016 12:05:01 -0800 Subject: py3: update releasetools with proper print syntax Change-Id: I48534a72e6559f60af5f9b1c09040b34b7575b63 --- tools/releasetools/add_img_to_target_files.py | 2 +- tools/releasetools/ota_from_target_files.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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: -- cgit v1.1