diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-20 07:29:12 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-20 07:31:35 +0100 |
| commit | 2e6a274d7ea13e938d42ce8f4a4ec1e5d141f8ec (patch) | |
| tree | cd7734c99061d3aceaa5b53c36e3bb99acd15a5d /examples/menuconfig.py | |
| parent | b42023a749574eb574e2bb09ae2843bdaea4c189 (diff) | |
Simplify menuconfig.py's value_str() a bit
No need to use a dictionary.
Diffstat (limited to 'examples/menuconfig.py')
| -rw-r--r-- | examples/menuconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/menuconfig.py b/examples/menuconfig.py index 5452d50..2b3b287 100644 --- a/examples/menuconfig.py +++ b/examples/menuconfig.py @@ -152,7 +152,7 @@ def value_str(sc): return "-->" return " " - tri_val_str = {0: " ", 1: "M", 2: "*"}[sc.tri_value] + tri_val_str = (" ", "M", "*")[sc.tri_value] if len(sc.assignable) == 1: # Pinned to a single value |
