Skip to content

Commit a5ea0dc

Browse files
committed
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.
1 parent 6ef362c commit a5ea0dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kconfiglib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4350,13 +4350,13 @@ def indent_add(s):
43504350

43514351
if isinstance(sc, Symbol):
43524352
for select, cond in sc.selects:
4353-
select_string = "select " + select.name
4353+
select_string = "select " + expr_str(select)
43544354
if cond is not sc.kconfig.y:
43554355
select_string += " if " + expr_str(cond)
43564356
indent_add(select_string)
43574357

43584358
for imply, cond in sc.implies:
4359-
imply_string = "imply " + imply.name
4359+
imply_string = "imply " + expr_str(imply)
43604360
if cond is not sc.kconfig.y:
43614361
imply_string += " if " + expr_str(cond)
43624362
indent_add(imply_string)

0 commit comments

Comments
 (0)