diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-03-06 02:10:20 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-03-06 02:15:29 +0100 |
| commit | 66557edc120faac569004ba2bc426c5ac6a1100b (patch) | |
| tree | 58b44e89288715d2907671e18a341cf4df0cd40e /examples/print_tree.py | |
| parent | 553cca8e7417ad863b923758e6d402296d05de9c (diff) | |
Use a consistent style in examples
Also remove some unused imports.
Diffstat (limited to 'examples/print_tree.py')
| -rw-r--r-- | examples/print_tree.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/print_tree.py b/examples/print_tree.py index cd23f68..66b3a81 100644 --- a/examples/print_tree.py +++ b/examples/print_tree.py @@ -49,6 +49,7 @@ from kconfiglib import Kconfig, Symbol, Choice, MENU, COMMENT def indent_print(s, indent): print(" "*indent + s) + def print_items(node, indent): while node: if isinstance(node.item, Symbol): @@ -69,5 +70,6 @@ def print_items(node, indent): node = node.next + kconf = Kconfig(sys.argv[1]) print_items(kconf.top_node, 0) |
