summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 65399b4..1527a00 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1388,6 +1388,10 @@ class Kconfig(object):
if save_old:
_save_old(filename)
+ # node_iter() was used here before commit 3aea9f7 ("Add '# end of
+ # <menu>' after menus in .config"). Those comments get tricky to
+ # implement with it.
+
with self._open(filename, "w") as f:
f.write(header)
@@ -1422,6 +1426,8 @@ class Kconfig(object):
# No more nodes
return
+ # Generate configuration output for the node
+
item = node.item
if item.__class__ is Symbol: