diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 20:48:00 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 20:48:00 +0200 |
| commit | 9b20903173f4aef0d80b117e0e5df59f94c5a491 (patch) | |
| tree | 7e3bbcfe44bd9d6792e0869c3678654b19fc5048 /kconfiglib.py | |
| parent | 41615c3a5e574fe39ba898cca8dc199a54d5e849 (diff) | |
Space nits.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index b0b2fbc..b97e1e9 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2439,12 +2439,12 @@ class Symbol(Item): return # Check if the value is valid for our type - if not (( self.type == BOOL and (v == "n" or v == "y") ) or - ( self.type == TRISTATE and (v == "n" or v == "m" or - v == "y") ) or - ( self.type == STRING ) or - ( self.type == INT and _is_base_n(v, 10) ) or - ( self.type == HEX and _is_base_n(v, 16) )): + if not ((self.type == BOOL and (v == "n" or v == "y") ) or + (self.type == TRISTATE and (v == "n" or v == "m" or + v == "y") ) or + (self.type == STRING ) or + (self.type == INT and _is_base_n(v, 10) ) or + (self.type == HEX and _is_base_n(v, 16) )): self.config._warn('the value "{0}" is invalid for {1}, which has type {2}. ' "Assignment ignored." .format(v, self.name, typename[self.type])) |
