mconf: Fix print when choices is a string instead of list

pull/3705/head
Xavier Claessens 7 years ago committed by Nirbheek Chauhan
parent da29e48d13
commit 04c5c53e3c
  1. 5
      mesonbuild/mconf.py

@ -82,7 +82,10 @@ class Conf:
value_col.append(make_lower_case(opt['value']))
if opt['choices']:
choices_found = True
choices_col.append('[{0}]'.format(', '.join(make_lower_case(opt['choices']))))
if isinstance(opt['choices'], list):
choices_col.append('[{0}]'.format(', '.join(make_lower_case(opt['choices']))))
else:
choices_col.append(make_lower_case(opt['choices']))
else:
choices_col.append('')

Loading…
Cancel
Save