You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Note weirdness in try/else
This commit is contained in:
@@ -851,9 +851,10 @@ class Scanner3(Scanner):
|
|||||||
# For 3.5, in addition the JUMP_FORWARD above we could have
|
# For 3.5, in addition the JUMP_FORWARD above we could have
|
||||||
# JUMP_BACK or CONTINUE
|
# JUMP_BACK or CONTINUE
|
||||||
#
|
#
|
||||||
# There are other contexts we may need to consider
|
# There are other situations we may need to consider
|
||||||
# like whether the target is "END_FINALLY"
|
# if the condition jump is to a forward location.
|
||||||
# or if the condition jump is to a forward location
|
# Also the existence of a jump to the instruction after "END_FINALLY"
|
||||||
|
# will distinguish "try/else" from "try".
|
||||||
if self.is_jump_forward(pre_rtarget) or (rtarget_is_ja and self.version >= 3.5):
|
if self.is_jump_forward(pre_rtarget) or (rtarget_is_ja and self.version >= 3.5):
|
||||||
if_end = self.get_target(pre_rtarget)
|
if_end = self.get_target(pre_rtarget)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user