From 96f06bd1674c0b8bdc188b2f99172690cec907d6 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 26 Jun 2019 16:31:16 +0200 Subject: Remove redundant parens in set_value() --- kconfiglib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kconfiglib.py') 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( -- cgit v1.2.3