Skip to content

Commit 3314c0d

Browse files
committed
Fix to the ADD_VALUE_x opcodes
1 parent 3d5e220 commit 3314c0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

uncompyle6/scanner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ def bound_collection_from_tokens(
171171
has_extended_arg=False,
172172
)
173173
)
174-
if tokens[j] == "LOAD_CONST":
175-
opname = "ADD_VALUE"
176-
else:
177-
opname = "ADD_VALUE_VAR"
178174
for j in range(collection_start, i):
175+
if tokens[j] == "LOAD_CONST":
176+
opname = "ADD_VALUE"
177+
else:
178+
opname = "ADD_VALUE_VAR"
179179
new_tokens.append(
180180
Token(
181181
opname=opname,

0 commit comments

Comments
 (0)