commit | dde002899db8d04ac25d630fcc3a27e8bbf282ea | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Mar 18 19:01:53 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Mar 18 19:01:53 2007 +0000 |
tree | 336d26b7a0e0da705cc729688de862bea896b251 | |
parent | 428f0641ec34902b0cce2cfdca833c79e6fdab7c [diff] |
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 79b702c..f07ec97 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py
@@ -113,7 +113,7 @@ 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