From 1c9ca43e12a9c09c94b87d1c494823b3c5d7798a Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 13 Dec 2020 11:50:46 +0100 Subject: Fix errors in python code, found by pylama in a strict CI --- modules/check-outbound-license.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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) -- cgit v1.2.1