1
0
forked from VimPlug/jedi

fix a unicode issue (test input was not unicode)

This commit is contained in:
Dave Halter
2014-03-10 17:15:41 +01:00
parent af7814c6d4
commit f8336d7176

View File

@@ -1,9 +1,10 @@
from jedi._compatibility import u
from jedi.parser import Parser
from jedi.evaluate import precedence
def parse_tree(statement_string, is_slice=False):
p = Parser(statement_string, no_docstr=True)
p = Parser(u(statement_string), no_docstr=True)
stmt = p.module.statements[0]
if is_slice:
# get the part of the execution that is the slice