diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-09 11:48:39 -0700 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-09 11:48:39 -0700 |
commit | bf04b0698b91df3c7ceb4f712956b84614bb5c53 (patch) | |
tree | 28e114cce3950304328cb2dbf151781f66b3823a /Tools/parser | |
parent | 8b26702fa3276b570c05e7ccc608bbf68336bf80 (diff) | |
download | cpython-git-bf04b0698b91df3c7ceb4f712956b84614bb5c53.tar.gz |
Issue #28008: Fix test_unparse
Diffstat (limited to 'Tools/parser')
-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 6c296bde75..7e1cc4ea5d 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) |