Add mistakenly removed constants back to tokenize. (#4030)

These constants were removed in
https://github.com/python/typeshed/pull/3839 because they are imported
from token. However, that is only true in Python 3.7+.
This commit is contained in:
Rebecca Chen
2020-05-17 18:05:07 -07:00
committed by GitHub
parent a675778140
commit 8366aa44bb

View File

@@ -3,6 +3,11 @@ from builtins import open as _builtin_open
import sys
from token import * # noqa: F403
if sys.version_info < (3, 7):
COMMENT: int
NL: int
ENCODING: int
cookie_re: Pattern[str]
blank_re: Pattern[bytes]