1
0
forked from VimPlug/jedi

string literal handling

This commit is contained in:
David Halter
2012-05-08 22:19:45 +02:00
parent 8b99785e15
commit e2446d675a
7 changed files with 62 additions and 23 deletions
+7 -1
View File
@@ -119,6 +119,12 @@ g1.
# -----------------
# dicts
# -----------------
dic2 = {'asdf': 3}
dic2 = {'asdf': 3, 'b': 'str'}
#? ['real']
dic2['asdf'].real
#? []
dic2['asdf'].upper
#? ['real']
dic2[r'asdf'].real
#? []
dic2[r'asdf'].upper
+1 -1
View File
@@ -151,7 +151,7 @@ exe.items
# -----------------
def fu(a=1, b="", *args, **kwargs):
return a,b,args,kwargs
return a, b, args, kwargs
exe = fu(list, 1, "", c=set)
+1 -1
View File
@@ -34,7 +34,7 @@ def completion_test(source):
try:
completions = functions.complete(source, line_nr, 999,
completion_test_dir)
except:
except Exception:
print 'test @%s: %s' % (line_nr-1, line)
print traceback.format_exc()
fails += 1