summaryrefslogtreecommitdiff
path: root/Lib/compiler/transformer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-18 19:01:53 +0000
committerGeorg Brandl <georg@python.org>2007-03-18 19:01:53 +0000
commitdde002899db8d04ac25d630fcc3a27e8bbf282ea (patch)
tree336d26b7a0e0da705cc729688de862bea896b251 /Lib/compiler/transformer.py
parent428f0641ec34902b0cce2cfdca833c79e6fdab7c (diff)
downloadcpython-git-dde002899db8d04ac25d630fcc3a27e8bbf282ea.tar.gz
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
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 79b702ce30..f07ec97fba 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -113,7 +113,7 @@ class Transformer:
token.LBRACE: self.atom_lbrace,
token.NUMBER: self.atom_number,
token.STRING: self.atom_string,
- token.DOT: self.atom_ellipsis,
+ token.ELLIPSIS: self.atom_ellipsis,
token.NAME: self.atom_name,
}
self.encoding = None