diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-24 01:25:41 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-24 02:43:17 +0100 |
| commit | e7830b9289c782962bbafe5bdb406b4a3c3cbc5b (patch) | |
| tree | b2e29f926c8d3fbabad9155be9a0c40cc1ceceb1 | |
| parent | 1e147d4cdecf70bf1236b8a67c0ff28e1fcd0f46 (diff) | |
Remove redundant int/hex user value 'is None' check
A valid int/hex user value can never be an empty string, so they test
can be simplified.
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index e002cc0..018fc0d 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2810,7 +2810,7 @@ class Symbol(object): # or has an out-of-range user value. use_defaults = True - if vis and self.user_value is not None: + if vis and self.user_value: user_val = int(self.user_value, base) if has_active_range and not low <= user_val <= high: num2str = str if base == 10 else hex |
