def generate_tokens(self, text):
        if text != self.last_text:
            self.last_text = text
            self.last_tokens = list(
                tokenize.generate_tokens(StringIO(text).readline)
            )
        return self.last_tokens

# Create our generate_tokens cache as a callable replacement function.
A stand-in for `tokenize.generate_tokens`.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/coverage/parser.py/CachedTokenizer.generate_tokens