diff options
-rw-r--r-- | mesonbuild/environment.py | 2 | ||||
-rw-r--r-- | mesonbuild/mesonlib.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index d3be926..b0ba78d 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -819,7 +819,7 @@ def get_args_from_envvars(compiler): if hasattr(compiler, 'get_linker_exelist'): compiler_is_linker = (compiler.get_exelist() == compiler.get_linker_exelist()) - if lang not in cflags_mapping.keys(): + if lang not in cflags_mapping: return [], [], [] compile_flags = os.environ.get(cflags_mapping[lang], '') diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 0263768..fbd732a 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -371,7 +371,7 @@ def do_replacement(regex, line, confdata): match = re.search(regex, line) while match: varname = match.group(1) - if varname in confdata.keys(): + if varname in confdata: (var, desc) = confdata.get(varname) if isinstance(var, str): pass |