diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-05 07:01:53 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-05 07:02:54 +0100 |
| commit | 087bc506d25b20b759a092a7490942e9cb212720 (patch) | |
| tree | 41569ca724be49cca976fe8bda14ed5e14547828 /examples/menuconfig.py | |
| parent | 182772455a18e6af38f0935a984f4ef1bdfc9221 (diff) | |
Simplify redundant 'is (not) None' tests in examples
Diffstat (limited to 'examples/menuconfig.py')
| -rw-r--r-- | examples/menuconfig.py | 4 |
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 |
