From f31679deddf9d3a311e72c80c4442a9049467a03 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 1 Jun 2018 23:00:49 +0100 Subject: Fix non-list used with FeatureNewKwargs The type of this argument needs checking, or single strings need handling correctly. --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/build.py') diff --git a/mesonbuild/build.py b/mesonbuild/build.py index c5e50da..4b42365 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1091,7 +1091,7 @@ recommended as it can lead to undefined behaviour on some platforms''') return class Generator: - @FeatureNewKwargs('generator', '0.43.0', 'capture') + @FeatureNewKwargs('generator', '0.43.0', ['capture']) def __init__(self, args, kwargs): if len(args) != 1: raise InvalidArguments('Generator requires exactly one positional argument: the executable') -- cgit v1.1