summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/transformer.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-02-15 23:43:19 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-02-15 23:43:19 (GMT)
commit1ebba9687142ede9163821999af06407a21d8d3c (patch)
tree72a65c9ca10b1e39390a4422038ef13de64663c0 /Lib/compiler/transformer.py
parent410e840c85727e56c6f8872b23e2976510fa7618 (diff)
downloadcpython-1ebba9687142ede9163821999af06407a21d8d3c.zip
cpython-1ebba9687142ede9163821999af06407a21d8d3c.tar.gz
cpython-1ebba9687142ede9163821999af06407a21d8d3c.tar.bz2
fix creation of Ellipsis node
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r--Lib/compiler/transformer.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)