diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-03 06:40:40 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-03 06:43:12 +0100 |
| commit | de2e7f766f247d4e8701dcca9fc921f1d0230463 (patch) | |
| tree | 57f649164fd91b324af34299b080b72d1ecf7d20 /kconfiglib.py | |
| parent | d1ea825a1d9d8bfc9496926b6a800ad58581b09a (diff) | |
Test Choice.assignable, fix for optional choices
Could never return 0 as a valid assignable value previously.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 612fc58..ae86b2a 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3190,7 +3190,7 @@ class Choice(object): if vis == 2: if not self.is_optional: return (2,) if self.type == BOOL else (1, 2) - return (2,) + return (0, 2) if self.type == BOOL else (0, 1, 2) # vis == 1 |
