mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
10 lines
283 B
Python
10 lines
283 B
Python
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
|
|
|
|
import tokenize
|
|
from io import StringIO
|
|
|
|
|
|
def _tokenize_str(code):
|
|
return list(tokenize.generate_tokens(StringIO(code).readline))
|