mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Get rid of all completions usages
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user