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.
pull/3177/head
Sander Sweers 7 years ago
parent daaae647d7
commit ae90b6586f
  1. 3
      mesonbuild/mconf.py

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

Loading…
Cancel
Save