aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-06-01 23:00:49 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-05 15:57:57 +0000
commitf31679deddf9d3a311e72c80c4442a9049467a03 (patch)
tree11a52eabdd61cbc6002086bc3602d2eea850c5d4 /mesonbuild/build.py
parent48d49afe31573aeef70fba060a4e81556b8fedc4 (diff)
downloadmeson-f31679deddf9d3a311e72c80c4442a9049467a03.zip
meson-f31679deddf9d3a311e72c80c4442a9049467a03.tar.gz
meson-f31679deddf9d3a311e72c80c4442a9049467a03.tar.bz2
Fix non-list used with FeatureNewKwargs
The type of this argument needs checking, or single strings need handling correctly.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 1 insertions, 1 deletions
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')