You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Reduce adding RETURN_END_IF in 3.5+
The whole control flow determination has to be redone in a less haphazard way using real flow-control analysis. Hopefully that's on the way. In the meantime we have this hack.
This commit is contained in:
@@ -894,7 +894,7 @@ class Scanner3(Scanner):
|
||||
return
|
||||
pass
|
||||
pass
|
||||
if code[pre_rtarget] == self.opc.RETURN_VALUE:
|
||||
if code[pre_rtarget] == self.opc.RETURN_VALUE and self.version < 3.5:
|
||||
self.return_end_ifs.add(pre_rtarget)
|
||||
else:
|
||||
self.fixed_jumps[offset] = rtarget
|
||||
|
Reference in New Issue
Block a user