1
0
forked from VimPlug/jedi

switched completely to unicode (in python2), fixes #52

This commit is contained in:
David Halter
2012-11-02 16:08:38 +01:00
parent 82c86dcd3e
commit 0704873fd7
5 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -14,7 +14,8 @@ TODO nonlocal statement, needed or can be ignored? (py3k)
TODO __ instance attributes should not be visible outside of the class.
"""
from _compatibility import next, property, hasattr, is_py3k, use_metaclass
from _compatibility import next, property, hasattr, is_py3k, use_metaclass, \
unicode
import sys
import itertools
@@ -1407,7 +1408,7 @@ def follow_call_list(call_list):
dynamic.ArrayInstance)):
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif not isinstance(call, str):
elif not isinstance(call, (str, unicode)):
if str(call.name) == 'if':
# Ternary operators.
while True: