Skip to content

Commit

Permalink
mconf: Do not turn opt.choices into a string
Browse files Browse the repository at this point in the history
It is inconsistent with other option groups. It also breaks
print_aligned as it handles lists.
  • Loading branch information
infirit committed Mar 4, 2018
1 parent daaae64 commit ae90b65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesonbuild/mconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ def print_conf(self):
# 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,
Expand Down

0 comments on commit ae90b65

Please sign in to comment.