diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-26 15:30:44 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-26 15:50:41 +0200 |
| commit | a5ea0dcbc8b9343f6901654ad92de6ece156f954 (patch) | |
| tree | a9bade817ada325e02e2a763a6909e43c4b4236e | |
| parent | 6ef362c490bc2608c971eeabd5930ea0d8893dbe (diff) | |
Use expr_str() to print selected/implied symbols
This is redundant on its own, as only a single symbol can be
selected/implied, meaning just .name will work fine too. It means that
all symbols appearing in the __str__() representation of symbols and
choices are now printed via expr_str() though, which might come in handy
soon.
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 46da1c1..cbe61c7 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4350,13 +4350,13 @@ def _sym_choice_str(sc): if isinstance(sc, Symbol): for select, cond in sc.selects: - select_string = "select " + select.name + select_string = "select " + expr_str(select) if cond is not sc.kconfig.y: select_string += " if " + expr_str(cond) indent_add(select_string) for imply, cond in sc.implies: - imply_string = "imply " + imply.name + imply_string = "imply " + expr_str(imply) if cond is not sc.kconfig.y: imply_string += " if " + expr_str(cond) indent_add(imply_string) |
