summaryrefslogtreecommitdiffstats
path: root/Lib/ast.py
diff options
context:
space:
mode:
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>2019-12-16 12:26:58 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2019-12-16 12:26:58 (GMT)
commita322f50c369e2e4138266c88e32ef83af95b2da6 (patch)
treea9efdf16870c45db525ee2c08cf8ad056b52afc0 /Lib/ast.py
parent092435e932dee1802784ec28f39454f50fdd879a (diff)
downloadcpython-a322f50c369e2e4138266c88e32ef83af95b2da6.zip
cpython-a322f50c369e2e4138266c88e32ef83af95b2da6.tar.gz
cpython-a322f50c369e2e4138266c88e32ef83af95b2da6.tar.bz2
bpo-38870: Remove dead code related with argument unparsing (GH-17613)
Diffstat (limited to 'Lib/ast.py')
-rw-r--r--Lib/ast.py7
1 files 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)