diff --git a/Tools/parser/unparse.py b/Tools/parser/unparse.py index 6c296bde759..7e1cc4ea5db 100644 --- a/Tools/parser/unparse.py +++ b/Tools/parser/unparse.py @@ -444,7 +444,10 @@ class Unparser: self.write("}") def _comprehension(self, t): - self.write(" for ") + if t.is_async: + self.write(" async for ") + else: + self.write(" for ") self.dispatch(t.target) self.write(" in ") self.dispatch(t.iter)