Skip to content

Commit 207dc0b

Browse files
committed
opc field in while1 reduction is off of token...
not self (parse)
1 parent 647df71 commit 207dc0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
357 Bytes
Binary file not shown.

uncompyle6/parsers/reducecheck/while1stmt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020 Rocky Bernstein
1+
# Copyright (c) 2020, 2022 Rocky Bernstein
22

33

44
def while1stmt(self, lhs, n, rule, ast, tokens, first, last):
@@ -42,7 +42,7 @@ def while1stmt(self, lhs, n, rule, ast, tokens, first, last):
4242
# token could be a pseudo-op like "LOAD_STR", which is not in
4343
# self.opc. We will replace that with LOAD_CONST as an
4444
# example of an instruction that is not in self.opc.JUMP_OPS
45-
if self.opc.opmap.get(token.kind, "LOAD_CONST") in self.opc.JUMP_OPS:
45+
if token.opc.opmap.get(token.kind, "LOAD_CONST") in self.opc.JUMP_OPS:
4646
if token.attr >= loop_end_offset:
4747
return True
4848

0 commit comments

Comments
 (0)