dictcomp_func -> dict_comp_func...

to match AST better. Also adds a correction in last commit,
including set_comp -> set_comp_expr where apprpriate

Note: can't use dict_comp as that was already used.
But dict_comp_func is matches AST better than dictcomp_func
This commit is contained in:
rocky
2018-03-05 11:10:09 -05:00
parent 2bdfd76635
commit 9f66694056
6 changed files with 30 additions and 19 deletions

View File

@@ -849,7 +849,7 @@ class FragmentsWalker(pysource.SourceWalker, object):
self.set_pos_info(node, start, len(self.f.getvalue()))
self.prune()
def n_set_comp(self, node):
def n_set_comp_expr(self, node):
start = len(self.f.getvalue())
self.write('{')
if node[0] in ['LOAD_SETCOMP', 'LOAD_DICTCOMP']: