You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Back off buggy "or" check
This commit is contained in:
@@ -44,8 +44,6 @@ def or_check(self, lhs, n, rule, ast, tokens, first, last):
|
|||||||
return False
|
return False
|
||||||
elif jmp_true_target < last_token_offset:
|
elif jmp_true_target < last_token_offset:
|
||||||
return True
|
return True
|
||||||
elif expr_jt.kind == "expr_jt" and jmp_true_target > last_token_offset:
|
|
||||||
return True
|
|
||||||
|
|
||||||
# If the jmp is backwards
|
# If the jmp is backwards
|
||||||
if last_token == "POP_JUMP_IF_FALSE" and not self.version in (2.7, 3.5, 3.6):
|
if last_token == "POP_JUMP_IF_FALSE" and not self.version in (2.7, 3.5, 3.6):
|
||||||
|
Reference in New Issue
Block a user