diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-05 14:35:29 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-06 06:53:11 +0000 |
commit | 2ee028b0bd961c3b7c2aa797d6c4d4b24b867f91 (patch) | |
tree | 24a8f4ab7e0b51e303f2f78a903b43dbb36cb96a /bootstrap | |
parent | 23f22e8e8ca50c862d1cece31a0a87050685cdd7 (diff) |
Fix Python linting issues in Python scripts
Fixed pylint issues for categories trailing-whitespace,
trailing-newlines, syntax-error, unused-import.
Change-Id: Iccbdb0c9538a6b8299c0517bafa1ec1be30f07cd
Issue-ID: INT-1427
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/jenkins/scripts/gen-java-jobs.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bootstrap/jenkins/scripts/gen-java-jobs.py b/bootstrap/jenkins/scripts/gen-java-jobs.py index 0fc538886..b4546c00f 100755 --- a/bootstrap/jenkins/scripts/gen-java-jobs.py +++ b/bootstrap/jenkins/scripts/gen-java-jobs.py @@ -12,11 +12,11 @@ import fileinput import os import subprocess -print """- project: +print("""- project: name: onap-java jobs: - 'java-{project}' - project:""" + project:""") for line in fileinput.input(): repo = line.strip() @@ -28,9 +28,9 @@ for line in fileinput.input(): project = repo.replace("/", "_") if pompath: project += "_" + pompath.replace("/", "_") - print " - '{}':".format(project) - print " repo: '{}'".format(repo) - if pompath: - print " pom: '{}/pom.xml'".format(pompath) + print(" - '{}':".format(project)) + print(" repo: '{}'".format(repo)) + if pompath: + print(" pom: '{}/pom.xml'".format(pompath)) else: - print " pom: 'pom.xml'" + print(" pom: 'pom.xml'") |