summaryrefslogtreecommitdiff
path: root/Tools/parser
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-09 11:48:39 -0700
committerYury Selivanov <yury@magic.io>2016-09-09 11:48:39 -0700
commitbf04b0698b91df3c7ceb4f712956b84614bb5c53 (patch)
tree28e114cce3950304328cb2dbf151781f66b3823a /Tools/parser
parent8b26702fa3276b570c05e7ccc608bbf68336bf80 (diff)
downloadcpython-git-bf04b0698b91df3c7ceb4f712956b84614bb5c53.tar.gz
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 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)