def _get_simple_assignments(tree):
result = {}<EOL>for node in ast.walk(tree):<EOL><INDENT>if isinstance(node, ast.Assign):<EOL><INDENT>for target in node.targets:<EOL><INDENT>if isinstance(target, ast.Name):<EOL><INDENT>result[target.id] = node.value<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return result<EOL>
Get simple assignments from node tree.