From e08324d85cd3dd1fb6ae916e24eb7d03c2a2ad9d Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sat, 5 Nov 2022 19:39:31 -0400 Subject: [PATCH] Replace remaining self.opc with token.opc --- uncompyle6/parsers/reducecheck/while1stmt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uncompyle6/parsers/reducecheck/while1stmt.py b/uncompyle6/parsers/reducecheck/while1stmt.py index 1570f1bb..2739acb9 100644 --- a/uncompyle6/parsers/reducecheck/while1stmt.py +++ b/uncompyle6/parsers/reducecheck/while1stmt.py @@ -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