xdis's "exception match" is now "exception-match"

This commit is contained in:
rocky
2017-07-17 22:42:57 -04:00
parent 9e8e4f54c7
commit d138a01bf1
4 changed files with 4 additions and 5 deletions

View File

@@ -921,7 +921,7 @@ class Scanner3(Scanner):
# except block return
jump_prev = prev_op[offset]
if self.is_pypy and code[jump_prev] == self.opc.COMPARE_OP:
if self.opc.cmp_op[code[jump_prev+1]] == 'exception match':
if self.opc.cmp_op[code[jump_prev+1]] == 'exception-match':
return
if self.version >= 3.5:
# Python 3.5 may remove as dead code a JUMP