You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Correct long-literals for Python 2.7
This commit is contained in:
@@ -171,10 +171,14 @@ class Scanner(object):
|
||||
has_extended_arg=False,
|
||||
)
|
||||
)
|
||||
if tokens[j] == "LOAD_CONST":
|
||||
opname = "ADD_VALUE"
|
||||
else:
|
||||
opname = "ADD_VALUE_VAR"
|
||||
for j in range(collection_start, i):
|
||||
new_tokens.append(
|
||||
Token(
|
||||
opname="ADD_VALUE",
|
||||
opname=opname,
|
||||
attr=tokens[j].attr,
|
||||
pattr=tokens[j].pattr,
|
||||
offset=tokens[j].offset,
|
||||
|
Reference in New Issue
Block a user