From: Jeremy Hylton Date: Tue, 15 Feb 2000 23:43:19 +0000 (+0000) Subject: fix creation of Ellipsis node X-Git-Tag: v1.6a1~418 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ebba9687142ede9163821999af06407a21d8d3c;p=thirdparty%2FPython%2Fcpython.git fix creation of Ellipsis node --- diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 63aac835be0e..9c8b32ea62a0 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -1021,7 +1021,7 @@ class Transformer: # slice_item: expression | proper_slice | ellipsis ch = node[1] if ch[0] == token.DOT and node[2][0] == token.DOT: - return ('ellipsis', None) + return Node('ellipsis') if ch[0] == token.COLON or len(node) > 2: return self.com_sliceobj(node) return self.com_node(ch) diff --git a/Tools/compiler/compiler/transformer.py b/Tools/compiler/compiler/transformer.py index 63aac835be0e..9c8b32ea62a0 100644 --- a/Tools/compiler/compiler/transformer.py +++ b/Tools/compiler/compiler/transformer.py @@ -1021,7 +1021,7 @@ class Transformer: # slice_item: expression | proper_slice | ellipsis ch = node[1] if ch[0] == token.DOT and node[2][0] == token.DOT: - return ('ellipsis', None) + return Node('ellipsis') if ch[0] == token.COLON or len(node) > 2: return self.com_sliceobj(node) return self.com_node(ch)