Browse Source

Return empty symbol dictionary instead of None.

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

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

@@ -210,7 +210,7 @@ def parse_py(codelet):
tree = ast.parse("\n".join(strip_encoding(codelet.code.splitlines())))
except SyntaxError:
## TODO: add some logging here?
return
return {}

walker = _TreeWalker()
walker.visit(tree)


Loading…
Cancel
Save