Merge branch 'python-3.3-to-3.5' into python-2.4

This commit is contained in:
rocky
2021-12-26 18:53:19 -05:00
13 changed files with 32 additions and 33 deletions

View File

@@ -567,7 +567,7 @@ class SourceWalker(GenericASTTraversal, object):
def n_expr(self, node):
first_child = node[0]
if first_child == "_mklambda" and self.in_format_string:
if first_child == "_lambda_body" and self.in_format_string:
p = -2
else:
p = self.prec
@@ -953,7 +953,7 @@ class SourceWalker(GenericASTTraversal, object):
self.println(lines[-1], quote)
self.prune()
def n_mklambda(self, node):
def n_lambda_body(self, node):
self.make_function(node, is_lambda=True, code_node=node[-2])
self.prune() # stop recursing