def visit(self, obj):
if isinstance(obj, list):<EOL><INDENT>return list(filter(lambda x: x is not None, map(self.visit, obj)))<EOL><DEDENT>elif isinstance(obj, ast.AST):<EOL><INDENT>return self._visit_one(obj)<EOL><DEDENT>else:<EOL><INDENT>return obj<EOL><DEDENT>
Visit a node or a list of nodes. Other values are ignored