1
0
forked from VimPlug/jedi

Python 2.7 io.StringIO always needs unicode input.

This commit is contained in:
Dave Halter
2015-04-28 02:05:38 +02:00
parent 657920baf5
commit b6f635b88b

View File

@@ -135,7 +135,7 @@ def test_ur_literals():
- All the other Python versions work very well with it.
"""
def check(literal):
io = StringIO(literal)
io = StringIO(u(literal))
tokens = tokenize.generate_tokens(io.readline)
token_list = list(tokens)
typ, result_literal, _, _ = token_list[0]