From bd7ec4552afd8185b6e15a1e531dc73c2bd04c65 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 21 Jun 2014 21:34:49 -0400 Subject: [PATCH] Return empty symbol dictionary instead of None. --- bitshift/parser/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitshift/parser/python.py b/bitshift/parser/python.py index 9d66537..a953303 100644 --- a/bitshift/parser/python.py +++ b/bitshift/parser/python.py @@ -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)