3.x lambda * handling

This commit is contained in:
rocky
2019-12-22 12:28:27 -05:00
parent 3ea73cf977
commit 6a82b1045e
2 changed files with 1 additions and 1 deletions

View File

@@ -830,7 +830,7 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
# created a parameter list and at the very end did a join on that?
# Unless careful, We might lose line breaks though.
ends_in_comma = False
if kwonlyargcount > 0 and not is_lambda:
if kwonlyargcount > 0:
if not (4 & code.co_flags):
if argc > 0:
self.write(", *, ")