Skip to content

Commit

Permalink
Fix NaryExpr __str__ method (#102)
Browse files Browse the repository at this point in the history
Remove the comma causing the result to be a tuple and therefore rendering the __str__ method unusable
  • Loading branch information
StylishTriangles authored Aug 27, 2021
1 parent 8ad44a4 commit 9a94eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyteal/ast/naryexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __teal__(self, options: "CompileOptions"):
return start, end

def __str__(self):
ret_str = ("(" + str(self.op),)
ret_str = "(" + str(self.op)
for a in self.args:
ret_str += " " + a.__str__()
ret_str += ")"
Expand Down

0 comments on commit 9a94eaa

Please sign in to comment.