From a322f50c369e2e4138266c88e32ef83af95b2da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Ta=C5=9Fkaya?= <47358913+isidentical@users.noreply.github.com> Date: Mon, 16 Dec 2019 15:26:58 +0300 Subject: bpo-38870: Remove dead code related with argument unparsing (GH-17613) --- Lib/ast.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Lib/ast.py b/Lib/ast.py index 77eb249..13ae9e0 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) -- cgit v0.12