diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-07-01 23:32:08 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-07-02 07:05:08 +0000 |
| commit | 817dcaa23b92d37339a157ee637ebf361663054b (patch) | |
| tree | 3cbc7075bfc5013a19ca58570da2141567ed1f9e /mesonbuild/modules/__init__.py | |
| parent | d0c5fddd7235eb054a47ac319a4a3e9839c7e66c (diff) | |
| download | meson-817dcaa23b92d37339a157ee637ebf361663054b.tar.gz | |
Remove permittedSnippetKwargs, snippets are not special
All we needed to do was change _get_callee_args() to also support
snippets.
Diffstat (limited to 'mesonbuild/modules/__init__.py')
| -rw-r--r-- | mesonbuild/modules/__init__.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index e871b8729..e461144f2 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -3,19 +3,6 @@ import os from .. import build from .. import mlog -class permittedSnippetKwargs: - - def __init__(self, permitted): - self.permitted = permitted - - def __call__(self, f): - def wrapped(s, interpreter, state, args, kwargs): - for k in kwargs: - if k not in self.permitted: - mlog.warning('Passed invalid keyword argument "%s". This will become a hard error in the future.' % k) - return f(s, interpreter, state, args, kwargs) - return wrapped - class ExtensionModule: def __init__(self, interpreter): |
