blob: 96094faf8773a247ced9243bd64f0c8fd1ee2b5a [file] [log] [blame]
# 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))