Skip to content

Commit 9829e04

Browse files
committed
Bug in collection printing ...
`"%s" % value` can fail if value is a tuple
1 parent c58e6ef commit 9829e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uncompyle6/semantics/n_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def n_const_list(self, node):
272272
if self.version < (3, 0, 0):
273273
value = "%r" % elem.pattr
274274
else:
275-
value = "%s" % elem.pattr
275+
value = "%s" % str(elem.pattr)
276276
else:
277277
assert elem.kind == "ADD_VALUE_VAR"
278278
value = "%s" % elem.pattr

0 commit comments

Comments
 (0)