Another faulty Python3 ELSE tag remove

This commit is contained in:
rocky
2016-12-10 00:43:55 -05:00
parent 65858a4c74
commit 2c993f8c32

View File

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