diff --git a/bitshift/parser/python.py b/bitshift/parser/python.py index 4cecfc4..b4a7796 100644 --- a/bitshift/parser/python.py +++ b/bitshift/parser/python.py @@ -111,8 +111,10 @@ class _CachedWalker(ast.NodeVisitor): if isinstance(node.func, ast.Name): name = node.func.id - else: + elif isinstance(node.func, ast.Attr): name = node.func.attr + else: # Dynamically selected functions, etc: + return if not self.accum['functions'].has_key(name): self.accum['functions'][name] = {'assignments': [], 'uses': []}