Another python 3 ELSE fixes and ...

Makefile:
  - test python 3.0 bytecode
  - turn full --verify back on Python 3.x
This commit is contained in:
rocky
2016-12-10 06:36:22 -05:00
parent 2c993f8c32
commit 38eed14b41
3 changed files with 19 additions and 12 deletions

View File

@@ -799,9 +799,10 @@ class Scanner3(Scanner):
self.not_continue.add(prev_op[rtarget])
if rtarget < end and (
code[rtarget] != self.opc.END_FINALLY
and code[prev_op[rrtarget]] not in (self.opc.POP_EXCEPT,
self.opc.END_FINALLY)):
code[rtarget] not in (self.opc.END_FINALLY,
self.opc.JUMP_ABSOLUTE) and
code[prev_op[rrtarget]] not in (self.opc.POP_EXCEPT,
self.opc.END_FINALLY)):
self.structs.append({'type': 'else',
'start': rtarget,
'end': end})