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