aboutsummaryrefslogtreecommitdiffstats
path: root/utils/create-jobs.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-06-03 15:23:53 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-06-11 08:04:46 +0200
commitb5bcfa146da2baf76fd466a7130a08465e9331ba (patch)
tree2d57826a0c1c1fb985e5af2fbc727a699e5f8faa /utils/create-jobs.py
parentb7b65449c824bc5cd7fdd0fba4a190fb47090e68 (diff)
SPEC-3408: convert releng-scripts to python3
This patch convert releng-scripts to python3. While at it, let's creating requirements.txt for specifying depencies yaml and jinja2. Change-Id: Iba7b45b10fd7e1336bf1e4a73e0e6275392e373c Bug-AGL: SPEC-3408 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'utils/create-jobs.py')
-rwxr-xr-xutils/create-jobs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index b2a7363..f3a158f 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import agljobtemplate
@@ -110,16 +110,16 @@ def main():
app_changeid=args.app_changeid, app_patchset=args.app_patchset, app_branch=args.app_branch)
if args.job_file is None:
- print job
+ print(job)
else:
try:
with open(args.job_file, 'w') as j:
j.write(job)
except IOError as e:
- print "{}: {}".format(e.strerror, args.job_file)
+ print("{}: {}".format(e.strerror, args.job_file))
exit(e.errno)
else:
- print "Job written to: {}".format(args.job_file)
+ print("Job written to: {}".format(args.job_file))
if __name__ == '__main__':