diff options
author | 2021-12-29 13:54:10 -0800 | |
---|---|---|
committer | 2021-12-29 13:58:28 -0800 | |
commit | 547ca205ae8d0d5bd893b9bc0436b2ae79bf79f5 (patch) | |
tree | 8f628f3f1d9d7984867280e1fcb334140e791868 /tools/generate-self-extracting-archive.py | |
parent | 6363a04e79742648d4bf6feb4e09473899ce1a9a (diff) |
Convert generate-self-extracting-archive.py to python 3
Test: Add a VENDOR_BLOBS_LICENSE entry to an existing product, then `m with-license`
Bug: 203436762
Change-Id: I4bbe77bda7789b6c44bea141518b1cd2e699d326
Diffstat (limited to 'tools/generate-self-extracting-archive.py')
-rwxr-xr-x | tools/generate-self-extracting-archive.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/generate-self-extracting-archive.py b/tools/generate-self-extracting-archive.py index 5b0628da88..c9f56cb2a6 100755 --- a/tools/generate-self-extracting-archive.py +++ b/tools/generate-self-extracting-archive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (C) 2019 The Android Open Source Project # @@ -120,7 +120,7 @@ def _generate_extract_command(start, size, extract_name): def main(argv): if len(argv) != 5: - print 'generate-self-extracting-archive.py expects exactly 4 arguments' + print('generate-self-extracting-archive.py expects exactly 4 arguments') sys.exit(1) output_filename = argv[1] @@ -134,11 +134,11 @@ def main(argv): license = license_file.read() if not license: - print 'License file was empty' + print('License file was empty') sys.exit(1) if 'SOFTWARE LICENSE AGREEMENT' not in license: - print 'License does not look like a license' + print('License does not look like a license') sys.exit(1) comment_line = '# %s\n' % comment |