diff options
author | Guido van Rossum <guido@python.org> | 2006-11-22 04:55:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-11-22 04:55:53 (GMT) |
commit | f59677a74aeee97a35c5826825170d07a1bb70d9 (patch) | |
tree | 5a55b8b73fbe639ec959761398e16751f943cad2 /Lib/compiler | |
parent | 29602e42ebdccab99ee8396bba74bd46d5c200b1 (diff) | |
download | cpython-f59677a74aeee97a35c5826825170d07a1bb70d9.zip cpython-f59677a74aeee97a35c5826825170d07a1bb70d9.tar.gz cpython-f59677a74aeee97a35c5826825170d07a1bb70d9.tar.bz2 |
The rest of patch 1549670 by Jiwon, making the compiler test pass.
This removes some bogus debug stuff Jiwon accidentally left in last time.
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/transformer.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 7b1e31c..dc88222 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -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): |