From b3f9207ea962b4106b017a435dc19bc93bede0d6 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 25 Aug 2015 09:52:23 +0300 Subject: [PATCH] Installer: Fix syntax for Python 3 Change-Id: I09a08f032b2cb774c0cf7d7290b9ab7e886137a2 Reviewed-by: Eike Ziller --- scripts/packageIfw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/packageIfw.py b/scripts/packageIfw.py index 25ecb46355c..67aba26a5e3 100755 --- a/scripts/packageIfw.py +++ b/scripts/packageIfw.py @@ -38,7 +38,7 @@ import shutil import inspect def usage(): - print 'Usage: %s [-v|--version-string=versionstring] [-i|--installer-path=/path/to/installerfw] [-a|--archive=archive.7z] ' % os.path.basename(sys.argv[0]) + print('Usage: %s [-v|--version-string=versionstring] [-i|--installer-path=/path/to/installerfw] [-a|--archive=archive.7z] ' % os.path.basename(sys.argv[0])) def substitute_file(infile, outfile, substitutions): with open(infile, 'r') as f: @@ -132,9 +132,9 @@ def main(): ifw_call = [os.path.join(ifw_location, 'bin', 'binarycreator'), '-c', os.path.join(out_config_dir, config_name), '-p', out_packages_dir, installer_name, '--offline-only' ] subprocess.check_call(ifw_call, stderr=subprocess.STDOUT) finally: - print 'Cleaning up...' + print('Cleaning up...') shutil.rmtree(temp_dir) - print 'Done.' + print('Done.') if __name__ == '__main__': main()