summaryrefslogtreecommitdiff
path: root/examples/menuconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menuconfig.py')
-rw-r--r--examples/menuconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/menuconfig.py b/examples/menuconfig.py
index a4038f8..e98ff43 100644
--- a/examples/menuconfig.py
+++ b/examples/menuconfig.py
@@ -221,12 +221,12 @@ def print_menuconfig_nodes(node, indent):
Prints a tree with all the menu entries rooted at node. Child menu entries
are indented.
"""
- while node is not None:
+ while node:
string = node_str(node)
if string:
indent_print(string, indent)
- if node.list is not None:
+ if node.list:
print_menuconfig_nodes(node.list, indent + 8)
node = node.next