bpo-38870: Remove dead code related with argument unparsing (GH-17613)

This commit is contained in:
Batuhan Taşkaya 2019-12-16 15:26:58 +03:00 committed by Pablo Galindo
parent 092435e932
commit a322f50c36
1 changed files with 2 additions and 5 deletions

View File

@ -1199,11 +1199,8 @@ class _Unparser(NodeVisitor):
# keyword-only arguments # keyword-only arguments
if node.kwonlyargs: if node.kwonlyargs:
for a, d in zip(node.kwonlyargs, node.kw_defaults): for a, d in zip(node.kwonlyargs, node.kw_defaults):
if first: self.write(", ")
first = False self.traverse(a)
else:
self.write(", ")
self.traverse(a),
if d: if d:
self.write("=") self.write("=")
self.traverse(d) self.traverse(d)