mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
Merge pull request #419 from jameshilliard/token-opc
Replace remaining self.opc with token.opc
This commit is contained in:
commit
283e493270
@ -40,9 +40,9 @@ def while1stmt(self, lhs, n, rule, ast, tokens, first, last):
|
||||
for t in range(first+1, loop_end):
|
||||
token = tokens[t]
|
||||
# token could be a pseudo-op like "LOAD_STR", which is not in
|
||||
# self.opc. We will replace that with LOAD_CONST as an
|
||||
# example of an instruction that is not in self.opc.JUMP_OPS
|
||||
if token.opc.opmap.get(token.kind, "LOAD_CONST") in self.opc.JUMP_OPS:
|
||||
# token.opc. We will replace that with LOAD_CONST as an
|
||||
# example of an instruction that is not in token.opc.JUMP_OPS
|
||||
if token.opc.opmap.get(token.kind, "LOAD_CONST") in token.opc.JUMP_OPS:
|
||||
if token.attr >= loop_end_offset:
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user