diff options
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index ff33f30..dc2c96d 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -5133,7 +5133,7 @@ class MenuNode(object): elif self.item is COMMENT: fields.append("menu node for comment") - elif self.item is None: + elif not self.item: fields.append("menu node for if (should not appear in the final " " tree)") @@ -5781,12 +5781,12 @@ def _remove_ifs(node): # makes it nicer to work with. first = node.list - while first and first.item is None: + while first and not first.item: first = first.next cur = first while cur: - if cur.next and cur.next.item is None: + if cur.next and not cur.next.item: cur.next = cur.next.next cur = cur.next |
