Skip to content

Commit bf04b06

Browse files
committed
Issue python#28008: Fix test_unparse
1 parent 8b26702 commit bf04b06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tools/parser/unparse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,10 @@ def _DictComp(self, t):
444444
self.write("}")
445445

446446
def _comprehension(self, t):
447-
self.write(" for ")
447+
if t.is_async:
448+
self.write(" async for ")
449+
else:
450+
self.write(" for ")
448451
self.dispatch(t.target)
449452
self.write(" in ")
450453
self.dispatch(t.iter)

0 commit comments

Comments
 (0)