From: Yury Selivanov Date: Fri, 9 Sep 2016 18:48:39 +0000 (-0700) Subject: Issue #28008: Fix test_unparse X-Git-Tag: v3.6.0b1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf04b0698b91df3c7ceb4f712956b84614bb5c53;p=python Issue #28008: Fix test_unparse --- 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)