Use up right 3.x opcodes in jump detection...

A small but pervasive, and I guess important change. More correct COME_FROMs
are now coming out. A number of grammar changes then in 3.0, 3.5, and 3.8
This commit is contained in:
rocky
2019-04-23 05:14:29 -04:00
parent 3730946a1a
commit 05db6194ec
6 changed files with 28 additions and 20 deletions

View File

@@ -502,9 +502,9 @@ class Scanner3(Scanner):
next_offset = xdis.next_offset(op, self.opc, offset)
if label is None:
if op in op3.hasjrel and op != self.opc.FOR_ITER:
if op in self.opc.hasjrel and op != self.opc.FOR_ITER:
label = next_offset + oparg
elif op in op3.hasjabs:
elif op in self.opc.hasjabs:
if op in self.jump_if_pop:
if oparg > offset:
label = oparg