diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/compiler/transformer.py | 2 |
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) |