Fixes in 3.5+ lambdas break 3.3-. Deal with later.

This commit is contained in:
rocky
2019-12-22 13:31:49 -05:00
parent 6a82b1045e
commit c078048fb0
2 changed files with 6 additions and 1 deletions

View File

@@ -860,7 +860,12 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
for i, flag in enumerate(other_kw):
if flag:
kw_args[i] = "%s" % kwargs[i]
if i < len(kwargs):
kw_args[i] = "%s" % kwargs[i]
else:
del kw_args[i]
pass
self.write(", ".join(kw_args))
ends_in_comma = False
pass