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/interpreter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mesonbuild/interpreter.py') diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 9d4a64a..3acb14f 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -276,8 +276,7 @@ class ConfigurationDataHolder(MutableInterpreterObject, ObjectHolder): def validate_args(self, args, kwargs): if len(args) == 1 and isinstance(args[0], list) and len(args[0]) == 2: - mlog.log(mlog.red('DEPRECATION:'), - '''Passing a list as the single argument to configuration_data.set is deprecated. + mlog.deprecation('''Passing a list as the single argument to configuration_data.set is deprecated. This will become a hard error in the future''') args = args[0] -- cgit v1.1