introduce flake8-simplify

This commit is contained in:
Willi Ballenthin
2023-07-12 11:40:44 +02:00
parent 7526ff876f
commit 65e8300145
28 changed files with 113 additions and 130 deletions

View File

@@ -397,7 +397,7 @@ def convert_rule(rule, rulename, cround, depth):
# this is "x or more". could be coded for strings TODO
return "BREAK", "Some aka x or more (TODO)", rule_comment, incomplete
if s_type == "And" or s_type == "Or" or s_type == "Not" and not kid.name == "Some":
if s_type == "And" or s_type == "Or" or s_type == "Not" and kid.name != "Some":
logger.info("doing bool with recursion: %r", kid)
logger.info("kid coming: %r", kid.name)
# logger.info("grandchildren: " + repr(kid.children))