commit | 71a1930430a2e88d3ac0a22eb2bcbcc7940e69f4 | [log] [tgz] |
---|---|---|
author | Eli Bendersky <[email protected]> | Fri Feb 15 06:40:34 2019 -0800 |
committer | Eli Bendersky <[email protected]> | Fri Feb 15 06:40:34 2019 -0800 |
tree | b1664b0d8fe45a1b9af64b552a04d8a5918cf7f5 | |
parent | 0da01ca3ede2829244e46d69613a54a89edeaf61 [diff] |
Protect visiting recursion against empty argument lists Fixes #308
diff --git a/examples/func_calls.py b/examples/func_calls.py index 84e8c27..97a7271 100644 --- a/examples/func_calls.py +++ b/examples/func_calls.py
@@ -26,7 +26,8 @@ if node.name.name == self.funcname: print('%s called at %s' % (self.funcname, node.name.coord)) # Visit args in case they contain more func calls. - self.visit(node.args) + if node.args: + self.visit(node.args) def show_func_calls(filename, funcname):