summaryrefslogtreecommitdiff
path: root/examples/print_tree.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-11-02 03:18:28 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-11-02 03:53:02 +0100
commitdb60270a2d498e59d76f072298aa9d45a03136f2 (patch)
tree54b983341e3c06563c2cc503e6b10f4b8926aeab /examples/print_tree.py
parent0e6cd82908f5c649e15e6a63ad77a94f627449d2 (diff)
menuconfig: Fix crash when toggling symbols without a type
Trying to toggle the following symbol crashed the menuconfig: config FOO prompt "foo" Symbols defined without a type are pointless and generate a warning (particular definition locations can omit the type, but some definition location should give a type if the symbol is defined in multiple locations). We should never crash for them though. Fix the crash. The code assumed that the symbol's current value would appear in Symbol.assignable, like for a visible bool/tristate, but symbols without types get their name as their value. Also skip printing "(NEW)" next to symbols without a type.
Diffstat (limited to 'examples/print_tree.py')
0 files changed, 0 insertions, 0 deletions