From 9829e0461171ea286d8a7cc6209f077cbf9c4841 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 17 Aug 2023 19:33:47 -0400 Subject: [PATCH] Bug in collection printing ... `"%s" % value` can fail if value is a tuple --- uncompyle6/semantics/n_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/semantics/n_actions.py b/uncompyle6/semantics/n_actions.py index 0747202b..a1768329 100644 --- a/uncompyle6/semantics/n_actions.py +++ b/uncompyle6/semantics/n_actions.py @@ -272,7 +272,7 @@ class NonterminalActions: 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