forked from VimPlug/jedi
Some more parso API changes.
This commit is contained in:
@@ -6,7 +6,7 @@ from collections import namedtuple
|
|||||||
|
|
||||||
from parso.python.parser import Parser
|
from parso.python.parser import Parser
|
||||||
from parso.python import tree
|
from parso.python import tree
|
||||||
from parso import tokenize
|
from parso.tokenize import tokenize
|
||||||
from parso.utils import splitlines
|
from parso.utils import splitlines
|
||||||
|
|
||||||
from jedi._compatibility import u
|
from jedi._compatibility import u
|
||||||
@@ -119,7 +119,7 @@ def get_stack_at_position(grammar, code_lines, module_node, pos):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def tokenize_without_endmarker(code):
|
def tokenize_without_endmarker(code):
|
||||||
tokens = tokenize.source_tokens(code)
|
tokens = tokenize(code)
|
||||||
for token_ in tokens:
|
for token_ in tokens:
|
||||||
if token_.string == safeword:
|
if token_.string == safeword:
|
||||||
raise EndMarkerReached()
|
raise EndMarkerReached()
|
||||||
|
|||||||
Reference in New Issue
Block a user