]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38870: Remove dead code related with argument unparsing (GH-17613)
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Mon, 16 Dec 2019 12:26:58 +0000 (15:26 +0300)
committerPablo Galindo <Pablogsal@gmail.com>
Mon, 16 Dec 2019 12:26:58 +0000 (12:26 +0000)
Lib/ast.py

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