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)
| 498 | yield from _generate_tokens_from_c_tokenizer(rl_gen.__next__, encoding, extra_tokens=True) |
| 499 | |
| 500 | def generate_tokens(readline): |
| 501 | """Tokenize a source reading Python code as unicode strings. |
| 502 | |
| 503 | This has the same API as tokenize(), except that it expects the *readline* |
| 504 | callable to return str objects instead of bytes. |
| 505 | """ |
| 506 | return _generate_tokens_from_c_tokenizer(readline, extra_tokens=True) |
| 507 | |
| 508 | def _main(args=None): |
| 509 | import argparse |
nothing calls this directly
no test coverage detected
searching dependent graphs…