From 37fe695e1745165bae6672e638e986bb885574c5 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 27 May 2018 04:04:25 +0200 Subject: Simplify unquoted string default check D'oh --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3