1
0
forked from VimPlug/jedi

literal classes mostly working

This commit is contained in:
David Halter
2013-09-05 23:45:56 +04:30
parent fc5fdf929a
commit 1b5f4f5e0b
5 changed files with 20 additions and 22 deletions

View File

@@ -860,7 +860,7 @@ class Array(use_metaclass(cache.CachedMetaClass, pr.Base)):
if len(key_commands) != 1: # cannot deal with complex strings
continue
key = key_commands[0]
if isinstance(key, pr.Call) and key.type == pr.Call.STRING:
if isinstance(key, pr.String):
str_key = key.name
elif isinstance(key, pr.Name):
str_key = str(key)