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