Commit fa33c684 authored by Stefan Behnel's avatar Stefan Behnel

clean up some whitespace

parent c6951de8
...@@ -1229,11 +1229,11 @@ class WithTransform(CythonTransform, SkipDeclarations): ...@@ -1229,11 +1229,11 @@ class WithTransform(CythonTransform, SkipDeclarations):
is_temp=True)) is_temp=True))
if target is not None: if target is not None:
body = Nodes.StatListNode( body = Nodes.StatListNode(
pos, stats = [ pos, stats=[
Nodes.WithTargetAssignmentStatNode( Nodes.WithTargetAssignmentStatNode(
pos, lhs = target, pos, lhs=target,
rhs = ResultRefNode(node.enter_call), rhs=ResultRefNode(node.enter_call),
orig_rhs = node.enter_call), orig_rhs=node.enter_call),
body]) body])
excinfo_target = ExprNodes.TupleNode(pos, slow=True, args=[ excinfo_target = ExprNodes.TupleNode(pos, slow=True, args=[
...@@ -1248,29 +1248,29 @@ class WithTransform(CythonTransform, SkipDeclarations): ...@@ -1248,29 +1248,29 @@ class WithTransform(CythonTransform, SkipDeclarations):
test_if_run=False, test_if_run=False,
args=excinfo_target)), args=excinfo_target)),
body=Nodes.ReraiseStatNode(pos), body=Nodes.ReraiseStatNode(pos),
), ),
], ],
else_clause=None), else_clause=None),
pattern=None, pattern=None,
target=None, target=None,
excinfo_target=excinfo_target, excinfo_target=excinfo_target,
) )
node.body = Nodes.TryFinallyStatNode( node.body = Nodes.TryFinallyStatNode(
pos, body=Nodes.TryExceptStatNode( pos, body=Nodes.TryExceptStatNode(
pos, body=body, pos, body=body,
except_clauses=[except_clause], except_clauses=[except_clause],
else_clause=None, else_clause=None,
), ),
finally_clause=Nodes.ExprStatNode( finally_clause=Nodes.ExprStatNode(
pos, expr=ExprNodes.WithExitCallNode( pos, expr=ExprNodes.WithExitCallNode(
pos, with_stat=node, pos, with_stat=node,
test_if_run=True, test_if_run=True,
args=ExprNodes.TupleNode( args=ExprNodes.TupleNode(
pos, args=[ExprNodes.NoneNode(pos) for _ in range(3)] pos, args=[ExprNodes.NoneNode(pos) for _ in range(3)]
))), ))),
handle_error_case=False, handle_error_case=False,
) )
return node return node
def visit_ExprNode(self, node): def visit_ExprNode(self, node):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment