Python 3.0 decompile bugs

This commit is contained in:
rocky
2017-01-08 22:19:15 -05:00
parent ec0669367f
commit 707770049f
5 changed files with 6 additions and 1 deletions

View File

@@ -322,7 +322,7 @@ class Scanner3(Scanner):
if target <= inst.offset:
next_opname = self.opname[self.code[inst.offset+3]]
if (inst.offset in self.stmts and
#if (hasattr(inst, 'linestart') and
(self.version != 3.0 or (hasattr(inst, 'linestart'))) and
(next_opname not in ('END_FINALLY', 'POP_BLOCK',
# Python 3.0 only uses POP_TOP
'POP_TOP'))):