summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-07-02 17:48:19 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-07-02 18:07:34 +0200
commit29758ae0652799488a567df682a7ef391c68aecb (patch)
treecbcf31c12c8c479645ed02f4eadc42c1c5c4d12b /kconfiglib.py
parente62835208b15c81d1ebf79ea4d3b53200abccb25 (diff)
setconfig: Use 'orig_type' instead of 'type' in error message
It's confusing to have tristate symbols show up as bool in the bad-value error message when modules are disabled. set_value() validates the value against 'orig_type' rather than 'type' as well. Piggyback some quote consistency and make a comment in set_value() more informative.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index aa036ec..1faa603 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4473,7 +4473,7 @@ class Symbol(object):
value = STR_TO_TRI[value]
# If the new user value matches the old, nothing changes, and we can
- # save some work.
+ # avoid invalidating cached values.
#
# This optimization is skipped for choice symbols: Setting a choice
# symbol's user value to y might change the state of the choice, so it