Bugs in nested async for...

* Generalize asyc_for rule
 Fix bug in picking out comprehension iterator in async for
* fix bug in getting expression in such a comprehension
* Add %[n]{%x} pattern to template_engine()
This commit is contained in:
rocky
2020-04-29 10:12:54 -04:00
parent a4eaeea5b2
commit 3e1300eb23
4 changed files with 38 additions and 13 deletions

View File

@@ -963,7 +963,7 @@ class FragmentsWalker(pysource.SourceWalker, object):
self.prune()
def n_listcomp(self, node):
def n_list_comp(self, node):
self.write("[")
if node[0].kind == "load_closure":
self.listcomprehension_walk2(node)