aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/interpreter.py
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2023-04-11 16:04:17 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-04-11 19:21:05 -0400
commitcf9fd56bc905a2022ad48c93d25b5a73b57c8802 (patch)
treea6858f0e790f801f49d8d4f161e9183deaf90e20 /mesonbuild/ast/interpreter.py
parente238b81ba0b89faa19b512d1e78de00dad1488ce (diff)
downloadmeson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.zip
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.gz
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.bz2
fix various spelling issues
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'mesonbuild/ast/interpreter.py')
-rw-r--r--mesonbuild/ast/interpreter.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py
index 7484e04..68e2b6e 100644
--- a/mesonbuild/ast/interpreter.py
+++ b/mesonbuild/ast/interpreter.py
@@ -352,7 +352,7 @@ class AstInterpreter(InterpreterBase):
return None # Loop detected
id_loop_detect += [node.ast_id]
- # Try to evealuate the value of the node
+ # Try to evaluate the value of the node
if isinstance(node, IdNode):
result = quick_resolve(node)
@@ -421,7 +421,7 @@ class AstInterpreter(InterpreterBase):
else:
args = [args_raw]
- flattend_args = [] # type: T.List[TYPE_nvar]
+ flattened_args = [] # type: T.List[TYPE_nvar]
# Resolve the contents of args
for i in args:
@@ -430,18 +430,18 @@ class AstInterpreter(InterpreterBase):
if resolved is not None:
if not isinstance(resolved, list):
resolved = [resolved]
- flattend_args += resolved
+ flattened_args += resolved
elif isinstance(i, (str, bool, int, float)) or include_unknown_args:
- flattend_args += [i]
- return flattend_args
+ flattened_args += [i]
+ return flattened_args
def flatten_kwargs(self, kwargs: T.Dict[str, TYPE_nvar], include_unknown_args: bool = False) -> T.Dict[str, TYPE_nvar]:
- flattend_kwargs = {}
+ flattened_kwargs = {}
for key, val in kwargs.items():
if isinstance(val, BaseNode):
resolved = self.resolve_node(val, include_unknown_args)
if resolved is not None:
- flattend_kwargs[key] = resolved
+ flattened_kwargs[key] = resolved
elif isinstance(val, (str, bool, int, float)) or include_unknown_args:
- flattend_kwargs[key] = val
- return flattend_kwargs
+ flattened_kwargs[key] = val
+ return flattened_kwargs