summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 700870d..d9af800 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2579,8 +2579,6 @@ class Kconfig(object):
if self._peek_token() is None:
choice = Choice()
choice.direct_dep = self.n
-
- self.choices.append(choice)
else:
# Named choice
name = self._expect_str_and_eol()
@@ -2589,10 +2587,10 @@ class Kconfig(object):
choice = Choice()
choice.name = name
choice.direct_dep = self.n
-
- self.choices.append(choice)
self.named_choices[name] = choice
+ self.choices.append(choice)
+
choice.kconfig = self
node = MenuNode()