aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2020-12-13 11:50:46 +0100
committerDavid Faure <faure@kde.org>2020-12-13 11:51:10 +0100
commit1c9ca43e12a9c09c94b87d1c494823b3c5d7798a (patch)
treeeaa04cfd7ab6795cb1d83be23e3a01fcb3241200 /modules
parent0d0e85db1d62ae59b781b60f6c5b69b6ae7bd2e0 (diff)
downloadextra-cmake-modules-1c9ca43e12a9c09c94b87d1c494823b3c5d7798a.tar.gz
extra-cmake-modules-1c9ca43e12a9c09c94b87d1c494823b3c5d7798a.tar.bz2
Fix errors in python code, found by pylama in a strict CI
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/check-outbound-license.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/check-outbound-license.py b/modules/check-outbound-license.py
index b8c1ef23..2657e628 100755
--- a/modules/check-outbound-license.py
+++ b/modules/check-outbound-license.py
@@ -125,15 +125,15 @@ if __name__ == '__main__':
spdxDictionary[fileName] = licenses
fileName = ""
licenses = []
- f.close();
+ f.close()
# read file with list of test files
f = open(args.input, "r")
testfiles = f.readlines()
f.close()
- if check_outbound_license(args.license, testfiles, spdxDictionary) == True:
- sys.exit(0);
+ if check_outbound_license(args.license, testfiles, spdxDictionary) is True:
+ sys.exit(0)
# in any other case, return error code
sys.exit(1)