mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
removed dead code
This commit is contained in:
parent
27437a4913
commit
9b80a9ec3d
1 changed files with 0 additions and 10 deletions
10
xonsh/ast.py
10
xonsh/ast.py
|
@ -445,21 +445,11 @@ class CtxAwareTransformer(NodeTransformer):
|
|||
|
||||
def visit_For(self, node):
|
||||
"""Handle visiting a for statement."""
|
||||
pprint_ast(node)
|
||||
targ = node.target
|
||||
self.ctxupdate(gather_names(targ))
|
||||
self.generic_visit(node)
|
||||
return node
|
||||
|
||||
def visit_GeneratorExpr(self, node):
|
||||
"""Handle visiting a generator expression."""
|
||||
raise Exception
|
||||
targ = node.generators
|
||||
self.ctxupdate(gather_names(targ))
|
||||
print(gather_names(targ))
|
||||
self.generic_visit(node)
|
||||
return node
|
||||
|
||||
def visit_FunctionDef(self, node):
|
||||
"""Handle visiting a function definition."""
|
||||
self.ctxadd(node.name)
|
||||
|
|
Loading…
Add table
Reference in a new issue