Possble use of ','.join to remove "ends_in_comma"?

This commit is contained in:
rocky
2019-06-09 18:29:46 -04:00
parent 24ba5d7f40
commit b2d97f9847

View File

@@ -759,6 +759,9 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
self.write("(", ", ".join(params))
# self.println(indent, '#flags:\t', int(code.co_flags))
# FIXME: Could we remove ends_in_comma and its tests if we just
# 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:
if no_paramnames: