From 2e6a274d7ea13e938d42ce8f4a4ec1e5d141f8ec Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 20 Nov 2017 07:29:12 +0100 Subject: Simplify menuconfig.py's value_str() a bit No need to use a dictionary. --- examples/menuconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 -- cgit v1.2.3