Skip to content

Commit

Permalink
Issue python#28008: Fix test_unparse
Browse files Browse the repository at this point in the history
  • Loading branch information
1st1 committed Sep 9, 2016
1 parent 8b26702 commit bf04b06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/parser/unparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ def _DictComp(self, t):
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)
Expand Down

0 comments on commit bf04b06

Please sign in to comment.