From 6a98484bab8b5528d0915b5cf67ab00bbd461348 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 5 Nov 2017 09:39:45 +0100 Subject: Add invalidation warning to Choice.selection Now in all paths that cache values. --- kconfiglib.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3