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