summaryrefslogtreecommitdiffstats
path: root/Lib/token.py
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-01-16 01:15:36 (GMT)
committerMeador Inge <meadori@gmail.com>2012-01-16 01:15:36 (GMT)
commit33880601273ec60572df3dfe5f781f34893bbafb (patch)
treee4d50227e945fa0329f5ec3989c67d2fd1a467ec /Lib/token.py
parent7f53aea53b4b1d0da69d004e57715d3943797b26 (diff)
downloadcpython-33880601273ec60572df3dfe5f781f34893bbafb.zip
cpython-33880601273ec60572df3dfe5f781f34893bbafb.tar.gz
cpython-33880601273ec60572df3dfe5f781f34893bbafb.tar.bz2
Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes.
Diffstat (limited to 'Lib/token.py')
-rwxr-xr-xLib/token.py60
1 files changed, 30 insertions, 30 deletions
diff --git a/Lib/token.py b/Lib/token.py
index 7ddd35e..6b5320d 100755
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -35,36 +35,36 @@ GREATER = 21
EQUAL = 22
DOT = 23
PERCENT = 24
-LBRACE = 26
-RBRACE = 27
-EQEQUAL = 28
-NOTEQUAL = 29
-LESSEQUAL = 30
-GREATEREQUAL = 31
-TILDE = 32
-CIRCUMFLEX = 33
-LEFTSHIFT = 34
-RIGHTSHIFT = 35
-DOUBLESTAR = 36
-PLUSEQUAL = 37
-MINEQUAL = 38
-STAREQUAL = 39
-SLASHEQUAL = 40
-PERCENTEQUAL = 41
-AMPEREQUAL = 42
-VBAREQUAL = 43
-CIRCUMFLEXEQUAL = 44
-LEFTSHIFTEQUAL = 45
-RIGHTSHIFTEQUAL = 46
-DOUBLESTAREQUAL = 47
-DOUBLESLASH = 48
-DOUBLESLASHEQUAL = 49
-AT = 50
-RARROW = 51
-ELLIPSIS = 52
-OP = 53
-ERRORTOKEN = 54
-N_TOKENS = 55
+LBRACE = 25
+RBRACE = 26
+EQEQUAL = 27
+NOTEQUAL = 28
+LESSEQUAL = 29
+GREATEREQUAL = 30
+TILDE = 31
+CIRCUMFLEX = 32
+LEFTSHIFT = 33
+RIGHTSHIFT = 34
+DOUBLESTAR = 35
+PLUSEQUAL = 36
+MINEQUAL = 37
+STAREQUAL = 38
+SLASHEQUAL = 39
+PERCENTEQUAL = 40
+AMPEREQUAL = 41
+VBAREQUAL = 42
+CIRCUMFLEXEQUAL = 43
+LEFTSHIFTEQUAL = 44
+RIGHTSHIFTEQUAL = 45
+DOUBLESTAREQUAL = 46
+DOUBLESLASH = 47
+DOUBLESLASHEQUAL = 48
+AT = 49
+RARROW = 50
+ELLIPSIS = 51
+OP = 52
+ERRORTOKEN = 53
+N_TOKENS = 54
NT_OFFSET = 256
#--end constants--