From 66557edc120faac569004ba2bc426c5ac6a1100b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 6 Mar 2019 02:10:20 +0100 Subject: Use a consistent style in examples Also remove some unused imports. --- examples/print_tree.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/print_tree.py') 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) -- cgit v1.2.3