From: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> Date: Mon, 16 Dec 2019 12:26:58 +0000 (+0300) Subject: bpo-38870: Remove dead code related with argument unparsing (GH-17613) X-Git-Tag: v3.9.0a2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a322f50c369e2e4138266c88e32ef83af95b2da6;p=thirdparty%2FPython%2Fcpython.git bpo-38870: Remove dead code related with argument unparsing (GH-17613) --- diff --git a/Lib/ast.py b/Lib/ast.py index 77eb24971ed2..13ae9e0a70ea 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -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)