aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-07-06 23:20:13 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-07-07 04:33:24 -0700
commit4fb00ee1d8c79184e3a77f9266e90d42ff595f41 (patch)
tree401ca0cf5387f9e9662c63a22c5f6cf2ca5bee3a /mesonbuild/interpreter.py
parent4dc97a910ef0b9026048b71a020feb74fcc302af (diff)
downloadmeson-4fb00ee1d8c79184e3a77f9266e90d42ff595f41.zip
meson-4fb00ee1d8c79184e3a77f9266e90d42ff595f41.tar.gz
meson-4fb00ee1d8c79184e3a77f9266e90d42ff595f41.tar.bz2
Add new method: mlog.deprecation()
Instead of constructing it manually, use a helper.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py3
1 files changed, 1 insertions, 2 deletions
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]