This method doesn't exist in Python 2.7.
The new code is equivalent to what Python was doing up until
isidentifier() was introduced to Lib/tokenize.py in
33856de84d1115a18b699e0ca93c3b921bc6a1af.
Strictly speaking, a simple ascii check is not sufficient, as a proper
identifier is defined by PEP 3131 and allows non-ascii characters. But
we don't plan to use this tokenizer on arbitrary source code, so I think
we can get away with not conforming to PEP 3131.