diff options
author | Simon Warta <[email protected]> | 2017-01-09 23:17:22 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-01-11 12:32:03 +0100 |
commit | 859902a215ced4182e3d04e7b978678276fc3b31 (patch) | |
tree | 981bc63e61806556848edbdbc15ad456a4ac8205 /configure.py | |
parent | 2ececdf6a5b60ae143dd61eb516cda6df2300d43 (diff) |
Resolve lint issues: singleton-comparison
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.py b/configure.py index 12fb69e42..84ad37e52 100755 --- a/configure.py +++ b/configure.py @@ -642,7 +642,7 @@ class ModuleInfo(object): pub_header = set(self.header_public) int_header = set(self.header_internal) - if pub_header.isdisjoint(int_header) == False: + if not pub_header.isdisjoint(int_header): logging.error("Module %s header contains same header in public and internal sections" % (infofile)) # Coerce to more useful types @@ -681,7 +681,7 @@ class ModuleInfo(object): self.header_external = [add_dir_name(s) for s in self.header_external] for src in self.source + self.header_internal + self.header_public + self.header_external: - if os.access(src, os.R_OK) == False: + if not os.access(src, os.R_OK): logging.error("Missing file %s in %s" % (src, infofile)) if self.comment != []: @@ -1779,7 +1779,7 @@ def choose_modules_to_use(modules, module_policy, archinfo, ccinfo, options): to_load.append(mod) dep_met = True - if dep_met == False: + if not dep_met: dependency_failure = True if modname in to_load: to_load.remove(modname) |