Skip to content

Commit 5477627

Browse files
committed
Modified n_actions.py to issue __repr__ on py2 and __str__ py3, should fix the extra quotes
1 parent 2f650a6 commit 5477627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

uncompyle6/semantics/n_actions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ def n_const_list(self, node):
267267
if elem == "add_value":
268268
elem = elem[0]
269269
if elem == "ADD_VALUE":
270-
value = "%r" % elem.pattr
270+
if self.version[0] == 2:
271+
value = "%r" % elem.pattr
272+
else:
273+
value = "%s" % elem.pattr
271274
else:
272275
assert elem.kind == "ADD_VALUE_VAR"
273276
value = "%s" % elem.pattr

0 commit comments

Comments
 (0)