Skip to content

Commit

Permalink
Bug in collection printing ...
Browse files Browse the repository at this point in the history
`"%s" % value` can fail if value is a tuple
  • Loading branch information
rocky committed Aug 17, 2023
1 parent c58e6ef commit 9829e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uncompyle6/semantics/n_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def n_const_list(self, node):
if self.version < (3, 0, 0):
value = "%r" % elem.pattr
else:
value = "%s" % elem.pattr
value = "%s" % str(elem.pattr)
else:
assert elem.kind == "ADD_VALUE_VAR"
value = "%s" % elem.pattr
Expand Down

0 comments on commit 9829e04

Please sign in to comment.