diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-21 01:07:37 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-21 01:47:02 +0200 |
| commit | f2ac5e3c03c34d13b818ba64441fd6511d8f75a4 (patch) | |
| tree | 75232ae84cf5cbed561c71083b38efdb1f2e21b9 /examples/help_grep.py | |
| parent | 823f6952a18c200fccfbd5e54c32c78289ed8570 (diff) | |
Make set_value() no-change check work for "n"/"m"/"y" strings
Convert "n"/"m"/"y" to 0/1/2 earlier, so that e.g. sym.set_value("y")
is recognized as a no-op when sym.user_value == 2.
This also helps when loading several configuration files that assign
some of the same symbols, because load_config() calls set_value() with
"n"/"m"/"y".
This could also cut down on the number of times a particular warning is
displayed when loading lots of overlapping configuration files.
Diffstat (limited to 'examples/help_grep.py')
0 files changed, 0 insertions, 0 deletions
