mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
fix ctx aware expr
This commit is contained in:
parent
b03e59b5e2
commit
8074280dc6
1 changed files with 5 additions and 1 deletions
|
@ -138,7 +138,11 @@ class CtxAwareTransformer(NodeTransformer):
|
|||
if self.is_in_scope(node):
|
||||
return node
|
||||
else:
|
||||
return self.try_subproc_toks(node)
|
||||
newnode = self.try_subproc_toks(node)
|
||||
if not isinstance(newnode, Expr):
|
||||
newnode = Expr(value=newnode, lineno=node.lineno,
|
||||
col_offset=node.col_offset)
|
||||
return newnode
|
||||
|
||||
def visit_Assign(self, node):
|
||||
ups = set()
|
||||
|
|
Loading…
Add table
Reference in a new issue