summaryrefslogtreecommitdiffstats
path: root/Tools/parser
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-09 18:48:39 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-09 18:48:39 (GMT)
commitbf04b0698b91df3c7ceb4f712956b84614bb5c53 (patch)
tree28e114cce3950304328cb2dbf151781f66b3823a /Tools/parser
parent8b26702fa3276b570c05e7ccc608bbf68336bf80 (diff)
downloadcpython-bf04b0698b91df3c7ceb4f712956b84614bb5c53.zip
cpython-bf04b0698b91df3c7ceb4f712956b84614bb5c53.tar.gz
cpython-bf04b0698b91df3c7ceb4f712956b84614bb5c53.tar.bz2
Issue #28008: Fix test_unparse
Diffstat (limited to 'Tools/parser')
-rw-r--r--Tools/parser/unparse.py5
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)