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

This commit is contained in:
rocky
2023-01-16 03:51:18 -05:00

View File

@@ -463,10 +463,15 @@ class ComprehensionMixin:
self.write(": ")
self.preorder(n[1])
else:
if self.version == (3, 0) and len(n) > 1:
if self.version == (3, 0):
if isinstance(n, Token):
body = store
elif len(n) > 1:
body = n[1]
else:
body = n[0]
else:
body = n[0]
self.preorder(body)
if node == "list_comp_async":