diff options
| -rw-r--r-- | kconfiglib.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 64f66b9..bfcc567 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1381,6 +1381,10 @@ class Kconfig(object): for sym in self.unique_defined_syms: # _write_to_conf is determined when the value is calculated. This # is a hidden function call due to property magic. + # + # Note: In client code, you can check if sym.config_string is empty + # instead, to avoid accessing the internal _write_to_conf variable + # (though it's likely to keep working). val = sym.str_value if not sym._write_to_conf: continue @@ -1689,6 +1693,10 @@ class Kconfig(object): for sym in self.unique_defined_syms: # _write_to_conf is determined when the value is calculated. This # is a hidden function call due to property magic. + # + # Note: In client code, you can check if sym.config_string is empty + # instead, to avoid accessing the internal _write_to_conf variable + # (though it's likely to keep working). val = sym.str_value # n tristate values do not get written to auto.conf and autoconf.h, |
