aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-03-04 13:04:24 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-03-05 09:58:52 -0800
commit581d69a8d3a726dea06e8bf0cd18bb901692b56f (patch)
treea35887377e1967b4d9fb2f9280e8d3bd410e4cb1 /mesonbuild/modules/gnome.py
parentb231ff36df8e5cb21fa41a6380516c6cf5bf9c4e (diff)
downloadmeson-581d69a8d3a726dea06e8bf0cd18bb901692b56f.zip
meson-581d69a8d3a726dea06e8bf0cd18bb901692b56f.tar.gz
meson-581d69a8d3a726dea06e8bf0cd18bb901692b56f.tar.bz2
remove ability to pass multiple keys to extract_as_list
This makes the typing annotations basically impossible to get right, but if we only have one key then it's easy. Fortunately python provides comprehensions, so we don't even need the ability to pass multiple keys, we can just [extract_as_list(kwargs, c) for c in ('a', 'b', 'c')] and get the same result.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index ec8935e..e087bcd 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -98,7 +98,7 @@ class GnomeModule(ExtensionModule):
cmd = ['glib-compile-resources', '@INPUT@']
- source_dirs, dependencies = mesonlib.extract_as_list(kwargs, 'source_dir', 'dependencies', pop=True)
+ source_dirs, dependencies = [mesonlib.extract_as_list(kwargs, c, pop=True) for c in ['source_dir', 'dependencies']]
if len(args) < 2:
raise MesonException('Not enough arguments; the name of the resource '