mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #28008: Fix test_unparse
This commit is contained in:
parent
8b26702fa3
commit
bf04b0698b
1 changed files with 4 additions and 1 deletions
|
@ -444,7 +444,10 @@ class Unparser:
|
||||||
self.write("}")
|
self.write("}")
|
||||||
|
|
||||||
def _comprehension(self, t):
|
def _comprehension(self, t):
|
||||||
self.write(" for ")
|
if t.is_async:
|
||||||
|
self.write(" async for ")
|
||||||
|
else:
|
||||||
|
self.write(" for ")
|
||||||
self.dispatch(t.target)
|
self.dispatch(t.target)
|
||||||
self.write(" in ")
|
self.write(" in ")
|
||||||
self.dispatch(t.iter)
|
self.dispatch(t.iter)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue