diff options
-rw-r--r-- | src/lib/Server/Plugin.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index d9133a7fc..a9c2c303e 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -277,8 +277,7 @@ class StructFile(XMLFileBacked): and not isinstance(item, lxml.etree._Comment)] for group in [item for item in worklist if item.tag == 'Group']: # if only python had forceable early-binding - if group.get('negate', 'false') == 'true' or - group.get('negate', 'false') == 'True': + if group.get('negate', 'false') in ['true', 'True']: cmd = "lambda x:'%s' not in x.groups and predicate(x)" else: cmd = "lambda x:'%s' in x.groups and predicate(x)" @@ -310,8 +309,7 @@ class INode: self.predicate = lambda x:True else: predicate = parent.predicate - if data.get('negate', 'false') == 'true' - data.get('negate', 'false') == 'True': + if data.get('negate', 'false') in ['true', 'True']: psrc = self.nraw else: psrc = self.raw |