diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-05-13 10:36:58 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-06 20:02:37 +0000 |
commit | 04c5c53e3c6c8609869aad9c9552bc9757e0cefa (patch) | |
tree | 5ca59b2ab110bc00102d4b45c94018f8602090b6 /mesonbuild/mconf.py | |
parent | da29e48d137e5bc19046921aea9526906662f4cb (diff) | |
download | meson-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.py | 5 |
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('') |