diff options
-rw-r--r-- | Tools/parser/unparse.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/parser/unparse.py b/Tools/parser/unparse.py index 6c296bd..7e1cc4e 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) |