aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mconf.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-05-13 10:36:58 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-06 20:02:37 +0000
commit04c5c53e3c6c8609869aad9c9552bc9757e0cefa (patch)
tree5ca59b2ab110bc00102d4b45c94018f8602090b6 /mesonbuild/mconf.py
parentda29e48d137e5bc19046921aea9526906662f4cb (diff)
downloadmeson-04c5c53e3c6c8609869aad9c9552bc9757e0cefa.zip
meson-04c5c53e3c6c8609869aad9c9552bc9757e0cefa.tar.gz
meson-04c5c53e3c6c8609869aad9c9552bc9757e0cefa.tar.bz2
mconf: Fix print when choices is a string instead of list
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r--mesonbuild/mconf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index 9932aa0..00ac981 100644
--- a/mesonbuild/mconf.py
+++ b/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('')