diff options
| author | Georg Brandl <georg@python.org> | 2014-01-12 19:44:04 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-12 19:44:04 +0100 |
| commit | 1c77a305a14b26add4d3a94e56f4bab8f053458a (patch) | |
| tree | cbb620d934ef2edafacb2250d75fb7530f9b9b0b /sphinx/pycode/pgen2/token.py | |
| parent | eb963480526b6c1b901ad031bd4152914af1f482 (diff) | |
| download | sphinx-1c77a305a14b26add4d3a94e56f4bab8f053458a.tar.gz | |
Closes #1152: Fix pycode parsing errors of Python 3 code by including two grammar
versions for Python 2 and 3, and loading the appropriate version for the
running Python version.
Diffstat (limited to 'sphinx/pycode/pgen2/token.py')
| -rwxr-xr-x | sphinx/pycode/pgen2/token.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/token.py b/sphinx/pycode/pgen2/token.py index 61468b31..56a40ce7 100755 --- a/sphinx/pycode/pgen2/token.py +++ b/sphinx/pycode/pgen2/token.py @@ -62,7 +62,8 @@ COMMENT = 52 NL = 53 RARROW = 54 ERRORTOKEN = 55 -N_TOKENS = 56 +ELLIPSIS = 56 +N_TOKENS = 57 NT_OFFSET = 256 #--end constants-- |
