Merge branch 'master' into python-3.3-to-3.5

This commit is contained in:
rocky
2022-11-05 00:27:57 -04:00
3 changed files with 21 additions and 9 deletions

View File

@@ -659,7 +659,10 @@ class ComprehensionMixin:
list_ifs.append(n)
else:
list_ifs.append([1])
n = n[-2] if n[-1] == "come_from_opt" else n[-1]
if self.version[:2] == (3, 0) and n[2] == "list_iter":
n = n[2]
else:
n = n[-2] if n[-1] == "come_from_opt" else n[-1]
pass
elif n == "list_if37":
list_ifs.append(n)