[Python-checkins] bpo-38870: Remove dead code related with argument unparsing (GH-17613)
Pablo Galindo
webhook-mailer at python.org
Mon Dec 16 07:27:04 EST 2019
https://github.com/python/cpython/commit/a322f50c369e2e4138266c88e32ef83af95b2da6
commit: a322f50c369e2e4138266c88e32ef83af95b2da6
branch: master
author: Batuhan Taşkaya <47358913+isidentical at users.noreply.github.com>
committer: Pablo Galindo <Pablogsal at gmail.com>
date: 2019-12-16T12:26:58Z
summary:
bpo-38870: Remove dead code related with argument unparsing (GH-17613)
files:
M Lib/ast.py
diff --git a/Lib/ast.py b/Lib/ast.py
index 77eb24971ed24..13ae9e0a70eae 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -1199,11 +1199,8 @@ def visit_arguments(self, node):
# 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)
More information about the Python-checkins
mailing list