X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/b21c0c3d28d87bc944a1fdc979b30a0707b0df89..114e8357e65384e17baaa3c31aa528371e15679b:/src/blib2to3/pgen2/token.py?ds=inline diff --git a/src/blib2to3/pgen2/token.py b/src/blib2to3/pgen2/token.py index 349ba80..c939531 100644 --- a/src/blib2to3/pgen2/token.py +++ b/src/blib2to3/pgen2/token.py @@ -3,10 +3,7 @@ import sys from typing import Dict -if sys.version_info < (3, 8): - from typing_extensions import Final -else: - from typing import Final +from typing import Final # Taken from Python (r53757) and modified to include some tokens # originally monkeypatched in by pgen2.tokenize @@ -74,9 +71,6 @@ ERRORTOKEN: Final = 58 COLONEQUAL: Final = 59 N_TOKENS: Final = 60 NT_OFFSET: Final = 256 -# temporary for Python 2 deprecation -PRINT_STMT: Final = 316 -EXEC_STMT: Final = 288 # --end constants-- tok_name: Final[Dict[int, str]] = {}