summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-05 09:39:45 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-05 09:41:21 +0100
commit6a98484bab8b5528d0915b5cf67ab00bbd461348 (patch)
tree004f33fa4cd0a693a73c9a1c7bd0119c6838c7bc /kconfiglib.py
parente9d531366003fb2b7f6f340b566807eb0cd71bf1 (diff)
Add invalidation warning to Choice.selection
Now in all paths that cache values.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index c89e439..9515e43 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3034,6 +3034,8 @@ class Choice(object):
if self._cached_selection is not _NO_CACHED_SELECTION:
return self._cached_selection
+ # Warning: See Symbol._rec_invalidate(), and note that this is a hidden
+ # function call (property magic)
if self.tri_value != 2:
self._cached_selection = None
return None