aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-11-15 13:19:39 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2021-11-16 01:20:03 +0200
commit40a8a3f8fee7baadd181fe82e356d56abc412351 (patch)
tree183b9ad3dcc1b6270bc36f7998848a5fbd3d4d6b /mesonbuild/modules/gnome.py
parentaaac5538bf143289dce3560edf54be8e2f2577b7 (diff)
downloadmeson-40a8a3f8fee7baadd181fe82e356d56abc412351.zip
meson-40a8a3f8fee7baadd181fe82e356d56abc412351.tar.gz
meson-40a8a3f8fee7baadd181fe82e356d56abc412351.tar.bz2
modules/gnome: fix warning message that will always fire
`typed_pos_args` ensures that the length of args is always true.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 70d8c9c..962bbb1 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1051,9 +1051,8 @@ class GnomeModule(ExtensionModule):
sources = args[1]
if not sources:
raise MesonException('Yelp requires a list of sources')
- else:
- if len(args) > 1:
- mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
+ elif args[1]:
+ mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
source_str = '@@'.join(sources)
langs = kwargs['languages']