Skip to content

Commit 55bb564

Browse files
committed
More lint
1 parent cab53b4 commit 55bb564

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

uncompyle6/semantics/make_function36.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def make_function36(self, node, is_lambda, nested=1, code_node=None):
4040
Python version 3.6 and above.
4141
"""
4242

43-
# MAKE_CLOSURE adds an additional closure slot
43+
# MAKE_CLOSURE adds a closure slot
4444

4545
# In Python 3.6 and above stack change again. I understand
4646
# 3.7 changes some of those changes, although I don't
@@ -150,7 +150,7 @@ def build_param(ast, name, default, annotation=None):
150150
kwonlyargcount = code.co_kwonlyargcount
151151

152152
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])
154154

155155
paramnames.reverse()
156156
defparams.reverse()
@@ -181,7 +181,7 @@ def build_param(ast, name, default, annotation=None):
181181
)
182182
)
183183

184-
for param in paramnames[i + 1 :]:
184+
for param in paramnames[i + 1:]:
185185
if param in annotate_dict:
186186
params.append("%s: %s" % (param, annotate_dict[param]))
187187
else:
@@ -243,11 +243,9 @@ def build_param(ast, name, default, annotation=None):
243243
else:
244244
self.write("*, ")
245245
pass
246-
ends_in_comma = True
247246
else:
248247
if argc > 0:
249248
self.write(", ")
250-
ends_in_comma = True
251249

252250
# ann_dict = kw_dict = default_tup = None
253251
kw_dict = None

0 commit comments

Comments
 (0)