Get rid of all completions usages

This commit is contained in:
Dave Halter
2019-12-20 17:47:37 +01:00
parent 5bf6e7048b
commit 7f8ba17990
4 changed files with 20 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ def run(code, index, infer=False):
if infer:
result = script.goto_definitions()
else:
result = script.completions()
result = script.complete()
print('Used %ss for the %sth run.' % (time.time() - start, index + 1))
return result

View File

@@ -45,7 +45,7 @@ def run():
print('Process Memory before: %skB' % process_memory())
# After this the module should be cached.
# Need to invent a path so that it's really cached.
jedi.Script(wx_core, path='foobar.py').completions()
jedi.Script(wx_core, path='foobar.py').complete()
gc.collect() # make sure that it's all fair and the gc did its job.
print('Process Memory after: %skB' % process_memory())