summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-06 04:18:21 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-06 04:18:21 +0100
commitc65d0615d1688580fb340b072749622853cccb36 (patch)
treedb6ca07ecd43d894ebdba8e4325345a65314f641
parentb3483b7d488f07823be29bfa5fb131e7b5b9d021 (diff)
Use 'sym' instead of 'item' in choice-related loop
Only symbols appear in choice.syms. Clearer.
-rw-r--r--kconfiglib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 9c6103f..a9b23ba 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3888,9 +3888,9 @@ def _finalize_choice(node):
break
# Each choice item of UNKNOWN type gets the type of the choice
- for item in choice.syms:
- if item.orig_type == UNKNOWN:
- item.orig_type = choice.orig_type
+ for sym in choice.syms:
+ if sym.orig_type == UNKNOWN:
+ sym.orig_type = choice.orig_type
def _finalize_tree(node):
"""