diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-06 04:13:53 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-06 04:14:41 +0100 |
| commit | b5c6602760905bee2387ec62af7fe388ec07eecd (patch) | |
| tree | 10d4d48bffea27bca803502d70987be4a77fd69e /kconfiglib.py | |
| parent | 0c9eb44952d21951620a9a6765ecf5f95e89ada1 (diff) | |
Remove redundant 'is not None' test
Always a MenuNode or None. Can be tested simpler.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 89ca65a..fe0c492 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3874,7 +3874,7 @@ def _finalize_choice(node): choice = node.item cur = node.list - while cur is not None: + while cur: if isinstance(cur.item, Symbol): cur.item.choice = choice choice.syms.append(cur.item) |
