mconf: Do not turn opt.choices into a string

It is inconsistent with other option groups. It also breaks
print_aligned as it handles lists.
This commit is contained in:
Sander Sweers 2018-03-04 13:36:34 +01:00
parent daaae647d7
commit ae90b6586f
1 changed files with 1 additions and 2 deletions

View File

@ -233,8 +233,7 @@ class Conf:
# Zero length list or string
choices = ''
else:
# A non zero length list or string, convert to string
choices = str(opt.choices)
choices = opt.choices
optarr.append({'name': key,
'descr': opt.description,
'value': opt.value,