I have an evil plan to leverage the Python 3 tokenizer on Python 2.7.
The added files are Lib/token.py and Lib/tokenize.py from cpython's
Git repository at commit d4ed8809ddfaa23fe5edf2987c03afc32f5576c0. This
commit corresponds to the current development tip of the 3.7 branch.
The only commit since the 3.7.0 tag is
ab75d9e4244ee24bc96ea9d52362899e3bf365a2, which appears to contain a minor
fix to make the Python code more consistent with the C implementation.
The files are added without modifications. Future commits will tidy
things up a bit.
Because the files are third party, I've added them to static analysis
exclusion lists.
test-check-py3-compat.t and test-check-module-imports.t currently fail.
I'll deal with that in a subsequent commit.
- no-check-commit style violations galore