summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index af5415d..609ba7d 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2114,13 +2114,6 @@ class Kconfig(object):
# below.
node.dep = self.y
- # Properties added at this location. A local 'depends on' only applies
- # to these, in case a symbol is defined in multiple locations.
- node.defaults = []
- node.selects = []
- node.implies = []
- node.ranges = []
-
while self._next_line():
t0 = self._next_token()
if t0 is None:
@@ -4171,6 +4164,15 @@ class MenuNode(object):
"ranges"
)
+ def __init__(self):
+ # Properties defined on this particular menu node. A local 'depends on'
+ # only applies to these, in case a symbol is defined in multiple
+ # locations.
+ self.defaults = []
+ self.selects = []
+ self.implies = []
+ self.ranges = []
+
def referenced(self):
"""
Returns a set() of all symbols and choices referenced in the properties