Skip to content

Commit e08324d

Browse files
committed
Replace remaining self.opc with token.opc
1 parent 03282d3 commit e08324d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

uncompyle6/parsers/reducecheck/while1stmt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def while1stmt(self, lhs, n, rule, ast, tokens, first, last):
4040
for t in range(first+1, loop_end):
4141
token = tokens[t]
4242
# token could be a pseudo-op like "LOAD_STR", which is not in
43-
# self.opc. We will replace that with LOAD_CONST as an
44-
# example of an instruction that is not in self.opc.JUMP_OPS
45-
if token.opc.opmap.get(token.kind, "LOAD_CONST") in self.opc.JUMP_OPS:
43+
# token.opc. We will replace that with LOAD_CONST as an
44+
# example of an instruction that is not in token.opc.JUMP_OPS
45+
if token.opc.opmap.get(token.kind, "LOAD_CONST") in token.opc.JUMP_OPS:
4646
if token.attr >= loop_end_offset:
4747
return True
4848

0 commit comments

Comments
 (0)