mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
The rest of patch 1549670 by Jiwon, making the compiler test pass.
This removes some bogus debug stuff Jiwon accidentally left in last time.
This commit is contained in:
parent
29602e42eb
commit
f59677a74a
2 changed files with 31 additions and 53 deletions
|
@ -831,17 +831,11 @@ class Transformer:
|
|||
i = i + 3
|
||||
else: # no vararg
|
||||
assert node[0] == token.COMMA
|
||||
i += 1
|
||||
#elif node[0] == token.COMMA:
|
||||
# i += 1
|
||||
# kwonlyargs, skip = self.keywordonlyargs(nodelist[i:])
|
||||
# i += skip
|
||||
if nodelist[i][0] == token.NAME:
|
||||
i += 2
|
||||
if i < len(nodelist) and nodelist[i][0] == token.NAME:
|
||||
kwonlyargs, skip = self.keywordonlyargs(nodelist[i:])
|
||||
i += skip
|
||||
|
||||
print "kwonlyargs:", kwonlyargs
|
||||
|
||||
if i < len(nodelist):
|
||||
# should be DOUBLESTAR
|
||||
t = nodelist[i][0]
|
||||
|
@ -869,7 +863,6 @@ class Transformer:
|
|||
# skip the comma
|
||||
i = i + 1
|
||||
|
||||
print "names:", names, "defaults:", defaults, "kwonlyargs:", kwonlyargs, "flags:", flags
|
||||
return names, defaults, kwonlyargs, flags
|
||||
|
||||
def com_fpdef(self, node):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue