We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a20d02 commit 770817eCopy full SHA for 770817e
uncompyle6/semantics/n_actions.py
@@ -273,7 +273,9 @@ def n_const_list(self, node: SyntaxTree):
273
elem = elem[0]
274
275
if elem == "ADD_VALUE":
276
- if elem.optype in ("local", "name"):
+ if self.version < (3, 0, 0):
277
+ value = "%s" % repr(elem.pattr)
278
+ elif elem.optype in ("local", "name"):
279
value = elem.attr
280
elif elem.optype == "const" and not isinstance(elem.attr, str):
281
0 commit comments