@@ -40,7 +40,7 @@ def make_function36(self, node, is_lambda, nested=1, code_node=None):
40
40
Python version 3.6 and above.
41
41
"""
42
42
43
- # MAKE_CLOSURE adds an additional closure slot
43
+ # MAKE_CLOSURE adds a closure slot
44
44
45
45
# In Python 3.6 and above stack change again. I understand
46
46
# 3.7 changes some of those changes, although I don't
@@ -150,7 +150,7 @@ def build_param(ast, name, default, annotation=None):
150
150
kwonlyargcount = code .co_kwonlyargcount
151
151
152
152
paramnames = list (scanner_code .co_varnames [:argc ])
153
- kwargs = list (scanner_code .co_varnames [argc : argc + kwonlyargcount ])
153
+ kwargs = list (scanner_code .co_varnames [argc : argc + kwonlyargcount ])
154
154
155
155
paramnames .reverse ()
156
156
defparams .reverse ()
@@ -181,7 +181,7 @@ def build_param(ast, name, default, annotation=None):
181
181
)
182
182
)
183
183
184
- for param in paramnames [i + 1 :]:
184
+ for param in paramnames [i + 1 :]:
185
185
if param in annotate_dict :
186
186
params .append ("%s: %s" % (param , annotate_dict [param ]))
187
187
else :
@@ -243,11 +243,9 @@ def build_param(ast, name, default, annotation=None):
243
243
else :
244
244
self .write ("*, " )
245
245
pass
246
- ends_in_comma = True
247
246
else :
248
247
if argc > 0 :
249
248
self .write (", " )
250
- ends_in_comma = True
251
249
252
250
# ann_dict = kw_dict = default_tup = None
253
251
kw_dict = None
0 commit comments