You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
3.0 tweak in iflastsmtl reduction validation
This commit is contained in:
@@ -212,7 +212,10 @@ class Python30Parser(Python31Parser):
|
||||
return True
|
||||
while (first < last and isinstance(tokens[last].offset, str)):
|
||||
last -= 1
|
||||
return not (tokens[first].offset <= jmp_false[0].attr <= tokens[last].offset)
|
||||
if rule[0] == "iflaststmtl":
|
||||
return not (jmp_false[0].attr <= tokens[last].offset)
|
||||
else:
|
||||
return not (tokens[first].offset <= jmp_false[0].attr <= tokens[last].offset)
|
||||
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user