Skip to content

Commit

Permalink
Forgot loop over args
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Paul committed May 8, 2018
1 parent 2a9d138 commit 0d500bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/vardeps
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d500bf

Please sign in to comment.