Trying to replace the old pgen2 token module with a token module more tightly coupled to the standard library.

This commit is contained in:
Dave Halter committed 2014-12-16 01:52:15 +01:00
1 parent eaace104dd
commit d9d3740c92
5 files changed
+112 -89

No files matched your search

+3
View File
@@ -16,6 +16,9 @@ import re
from io import StringIO
from token import (tok_name, N_TOKENS, ENDMARKER, STRING, NUMBER, NAME, OP,
ERRORTOKEN, NEWLINE, INDENT, DEDENT)
import token
from jedi._compatibility import is_py3
cookie_re = re.compile("coding[:=]\s*([-\w.]+)")