You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Modified n_actions.py to issue __repr__ on py2 and __str__ py3, should fix the extra quotes
This commit is contained in:
@@ -267,7 +267,10 @@ class NonterminalActions:
|
||||
if elem == "add_value":
|
||||
elem = elem[0]
|
||||
if elem == "ADD_VALUE":
|
||||
value = "%r" % elem.pattr
|
||||
if self.version[0] == 2:
|
||||
value = "%r" % elem.pattr
|
||||
else:
|
||||
value = "%s" % elem.pattr
|
||||
else:
|
||||
assert elem.kind == "ADD_VALUE_VAR"
|
||||
value = "%s" % elem.pattr
|
||||
|
Reference in New Issue
Block a user