diff options
author | David Faure <faure@kde.org> | 2020-12-13 11:50:46 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2020-12-13 11:51:10 +0100 |
commit | 1c9ca43e12a9c09c94b87d1c494823b3c5d7798a (patch) | |
tree | eaa04cfd7ab6795cb1d83be23e3a01fcb3241200 /modules | |
parent | 0d0e85db1d62ae59b781b60f6c5b69b6ae7bd2e0 (diff) | |
download | extra-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-x | modules/check-outbound-license.py | 6 |
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) |