From 0d500bfaa23609d313d76af8444cbe3fabb28d1f Mon Sep 17 00:00:00 2001 From: Kevin Paul Date: Tue, 8 May 2018 15:53:12 -0600 Subject: [PATCH] Forgot loop over args --- scripts/vardeps | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/vardeps b/scripts/vardeps index cc8e1f24..c893e52b 100755 --- a/scripts/vardeps +++ b/scripts/vardeps @@ -46,7 +46,8 @@ def variable_search(obj, vars=None): if isinstance(obj, parsing.VarType): vars.add(obj.key) elif isinstance(obj, parsing.OpType): - vars = variable_search(arg, vars=vars) + for arg in obj.args: + vars = variable_search(arg, vars=vars) elif isinstance(obj, parsing.FuncType): for arg in obj.args: vars = variable_search(arg, vars=vars)