3.0 tweak in iflastsmtl reduction validation

This commit is contained in:
rocky
2019-11-12 06:37:43 -05:00
parent 144f52da8e
commit bc18fcf7fa

View File

@@ -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