summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-27 04:04:25 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-27 04:04:25 +0200
commit37fe695e1745165bae6672e638e986bb885574c5 (patch)
tree53b6444a90997ead79cb2b881b3b98b5b8da054c
parentab2431ca36139c6d450adfe275d1e14088633eed (diff)
Simplify unquoted string default check
D'oh
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index f032b26..99635fe 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4757,7 +4757,7 @@ def _check_sym_sanity(sym):
if sym.orig_type == STRING:
if not default.is_constant and not default.nodes and \
- default.name != default.name.upper():
+ not default.name.isupper():
# 'default foo' on a string symbol could be either a symbol
# reference or someone leaving out the quotes. Guess that
# the quotes were left out if 'foo' isn't all-uppercase