commit | 1ebba9687142ede9163821999af06407a21d8d3c | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Tue Feb 15 23:43:19 2000 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Tue Feb 15 23:43:19 2000 +0000 |
tree | 72a65c9ca10b1e39390a4422038ef13de64663c0 | |
parent | 410e840c85727e56c6f8872b23e2976510fa7618 [diff] |
fix creation of Ellipsis node
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 63aac83..9c8b32e 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py
@@ -1021,7 +1021,7 @@ # 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)