diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-07 13:06:54 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-07 13:06:54 +0100 |
| commit | fda4b31b247332f05268fb2a6544f9df36c8e559 (patch) | |
| tree | c58a30301b0c497994cc5f24a5a463ba3d0ddf8e /examples/menuconfig.py | |
| parent | b028c41014921cde824ed3b3208143e2369f9c63 (diff) | |
Test for m, y assignability in a more readable way
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 e98ff43..375b8c8 100644 --- a/examples/menuconfig.py +++ b/examples/menuconfig.py @@ -162,7 +162,7 @@ def value_str(sc): return "[{}]".format(tri_val_str) if sc.type == TRISTATE: - if sc.assignable[0] == 1: # m + if sc.assignable == (1, 2): # m and y available return "{" + tri_val_str + "}" # Gets a bit confusing with .format() return "<{}>".format(tri_val_str) |
