diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-05-28 17:07:41 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-05-28 17:09:09 +0200 |
| commit | c891db011e75ceec10fb574bf8dc7eeaeb24f8e7 (patch) | |
| tree | 5996e3b91db1b1e6aeb228b0b34c87d0423da1cb /kconfiglib.py | |
| parent | 3aea9f74d250817924fff80c73c42edb84e509a1 (diff) | |
Explain why node_iter() is not a good fit for write_config()
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 6 |
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: |
