From 4fb00ee1d8c79184e3a77f9266e90d42ff595f41 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 6 Jul 2018 23:20:13 +0530 Subject: Add new method: mlog.deprecation() Instead of constructing it manually, use a helper. --- mesonbuild/modules/gnome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/gnome.py') diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 1732282..f3eabda 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -683,7 +683,7 @@ class GnomeModule(ExtensionModule): langs = mesonlib.stringlistify(kwargs.pop('languages', [])) if langs: - mlog.log(mlog.red('DEPRECATION:'), '''The "languages" argument of gnome.yelp() is deprecated. + mlog.deprecation('''The "languages" argument of gnome.yelp() is deprecated. Use a LINGUAS file in the sources directory instead. This will become a hard error in the future.''') -- cgit v1.1