summaryrefslogtreecommitdiff
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@centricular.com>2018-06-04 18:21:34 +0530
commitfb7168635dc551139fd2bae20e750cfce9e06416 (patch)
tree5555d4c3fc3f9ca355771e2c6d56e4dab0aedf28 /mesonbuild/build.py
parent86476427d8b68c18c9c98cf7a5929642ea0e7adc (diff)
downloadmeson-nirbheek/document-feature-new.tar.gz
Fix non-list used with FeatureNewKwargsnirbheek/document-feature-new
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 0bcb98fb2..bc661f376 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1086,7 +1086,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')