Correct handling "if" in dictcomp in semantic actions for 3.x

This commit is contained in:
rocky
2020-01-15 02:36:19 -05:00
parent 3c2dafe74c
commit 5cdf057a47
10 changed files with 19 additions and 12 deletions

View File

@@ -1333,7 +1333,7 @@ class SourceWalker(GenericASTTraversal, object):
if comp_store:
self.preorder(comp_for)
elif if_node:
if if_node:
self.write(" if ")
if have_not:
self.write("not ")