diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-12-06 16:28:56 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-12-07 16:12:23 -0500 |
commit | 824e09159b83a76a73d94298563b8af47e5f8c26 (patch) | |
tree | 72efc63b1fa0c4cfebb7c2ad311909c4980242fd /mesonbuild | |
parent | 9ef36fa80bf4483bcd837ea3985a51ab533c7972 (diff) | |
download | meson-824e09159b83a76a73d94298563b8af47e5f8c26.zip meson-824e09159b83a76a73d94298563b8af47e5f8c26.tar.gz meson-824e09159b83a76a73d94298563b8af47e5f8c26.tar.bz2 |
modules/gnome: replace FeatureDeprecatedKwarg with typed_kwarg
Using the deprected_message helper.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/gnome.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 32d621b..2194578 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -1086,12 +1086,15 @@ class GnomeModule(ExtensionModule): self._devenv_prepend('GSETTINGS_SCHEMA_DIR', os.path.join(state.environment.get_build_dir(), state.subdir)) return ModuleReturnValue(target_g, [target_g]) - @FeatureDeprecatedKwargs('gnome.yelp', '0.43.0', ['languages'], - 'Use a LINGUAS file in the source directory instead') @typed_pos_args('gnome.yelp', str, varargs=str) @typed_kwargs( 'gnome.yelp', - KwargInfo('languages', ContainerTypeInfo(list, str), listify=True, default=[]), + KwargInfo( + 'languages', ContainerTypeInfo(list, str), + listify=True, default=[], + deprecated='0.43.0', + deprecated_message='Use a LINGUAS file in the source directory instead', + ), KwargInfo('media', ContainerTypeInfo(list, str), listify=True, default=[]), KwargInfo('sources', ContainerTypeInfo(list, str), listify=True, default=[]), KwargInfo('symlink_media', bool, default=True), |