From a5ea0dcbc8b9343f6901654ad92de6ece156f954 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 26 Mar 2018 15:30:44 +0200 Subject: 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. --- kconfiglib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kconfiglib.py') 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) -- cgit v1.2.3