summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-06-26 16:31:16 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-06-27 20:13:38 +0200
commit96f06bd1674c0b8bdc188b2f99172690cec907d6 (patch)
treedb7be21a4fa23577a7746fabc5d2c8f158eb8e1d /kconfiglib.py
parentee33cea0dc3230e292809c72fa9e79545bb006cd (diff)
Remove redundant parens in set_value()
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index cebf60c..2f998e4 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4473,11 +4473,11 @@ class Symbol(object):
# Check if the value is valid for our type
if not (self.orig_type is BOOL and value in (2, 0) or
self.orig_type is TRISTATE and value in TRI_TO_STR or
- (value.__class__ is str and
- (self.orig_type is STRING or
- self.orig_type is INT and _is_base_n(value, 10) or
- self.orig_type is HEX and _is_base_n(value, 16)
- and int(value, 16) >= 0))):
+ value.__class__ is str and
+ (self.orig_type is STRING or
+ self.orig_type is INT and _is_base_n(value, 10) or
+ self.orig_type is HEX and _is_base_n(value, 16)
+ and int(value, 16) >= 0)):
# Display tristate values as n, m, y in the warning
self.kconfig._warn(