summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-05 07:02:34 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-05 07:03:14 +0200
commitfffe6c4826ff750b7d5c24a8169eb50305d835ff (patch)
tree4d0ed78aa698cbff8036c92755b527d9a1cc810f /kconfiglib.py
parentf470e104f0344b53ff6e616015f045e5e9d47058 (diff)
_parse_block() style nit.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 392148c..1ff93d0 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1013,13 +1013,13 @@ class Config(object):
elif t0 == T_COMMENT:
comment = Comment()
+
comment.config = self
comment.parent = parent
-
comment.filename = filename
comment.linenr = linenr
-
comment.text = tokens.get_next()
+
self._parse_properties(line_feeder, comment, deps, visible_if_deps)
block.add_item(comment)
@@ -1027,13 +1027,12 @@ class Config(object):
elif t0 == T_MENU:
menu = Menu()
- self.menus.append(menu)
+
menu.config = self
menu.parent = parent
- menu.title = tokens.get_next()
-
menu.filename = filename
menu.linenr = linenr
+ menu.title = tokens.get_next()
# Parse properties and contents
self._parse_properties(line_feeder, menu, deps, visible_if_deps)
@@ -1045,6 +1044,8 @@ class Config(object):
menu.visible_if_expr))
block.add_item(menu)
+ self.menus.append(menu)
+
elif t0 == T_CHOICE:
# We support named choices
@@ -1065,7 +1066,6 @@ class Config(object):
choice.config = self
choice.parent = parent
-
choice.def_locations.append((filename, linenr))
# Parse properties and contents