MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / generate_tokens

Function generate_tokens

tools/python-3.11.9-amd64/Lib/tokenize.py:616–622  ·  view source on GitHub ↗

Tokenize a source reading Python code as unicode strings. This has the same API as tokenize(), except that it expects the *readline* callable to return str objects instead of bytes.

(readline)

Source from the content-addressed store, hash-verified

614
615
616def generate_tokens(readline):
617 """Tokenize a source reading Python code as unicode strings.
618
619 This has the same API as tokenize(), except that it expects the *readline*
620 callable to return str objects instead of bytes.
621 """
622 return _tokenize(readline, None)
623
624def main():
625 import argparse

Callers

nothing calls this directly

Calls 1

_tokenizeFunction · 0.70

Tested by

no test coverage detected