root: upgrade to pylint 2.7

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-03-22 19:58:56 +01:00
parent e202fd988b
commit 3157bf63a6
7 changed files with 9 additions and 8 deletions

View File

@ -148,11 +148,11 @@ class PolicyEngine:
return PolicyResult(self.empty_result)
passing = False
if self.mode == PolicyEngineMode.MODE_AND:
passing = all([x.passing for x in all_results])
passing = all(x.passing for x in all_results)
if self.mode == PolicyEngineMode.MODE_OR:
passing = any([x.passing for x in all_results])
passing = any(x.passing for x in all_results)
result = PolicyResult(passing)
result.messages = tuple([y for x in all_results for y in x.messages])
result.messages = tuple(y for x in all_results for y in x.messages)
return result
@property