Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
Fix swapping of branches (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm authored and alexbw committed Aug 8, 2018
1 parent 1a8880f commit 6533e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tangent/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def visit(self, node):
if not node.orelse:
return
else:
node.test = gast.UnaryOp(op=gast.Not, operand=node.test)
node.test = gast.UnaryOp(op=gast.Not(), operand=node.test)
node.body, node.orelse = node.orelse, node.body
elif isinstance(node, (gast.While, gast.For)) and not node.body:
return node.orelse
Expand Down

0 comments on commit 6533e83

Please sign in to comment.