From ae90b6586fcbd8d74272c3f01342e8308a3e8875 Mon Sep 17 00:00:00 2001 From: Sander Sweers Date: Sun, 4 Mar 2018 13:36:34 +0100 Subject: [PATCH] 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. --- mesonbuild/mconf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 45b3d8256..5129c7bca 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -233,8 +233,7 @@ class Conf: # 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,