Browse Source

Python parser bugfix, again.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
33c942402f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      bitshift/parser/python.py

+ 3
- 1
bitshift/parser/python.py View File

@@ -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': []}


Loading…
Cancel
Save