forked from VimPlug/jedi
removed faked_scopes, was only necessary because of weakrefs.
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
memoize_caches = []
|
||||
faked_scopes = []
|
||||
|
||||
|
||||
def clear_caches():
|
||||
""" Jedi caches many things, that should be completed after each completion
|
||||
finishes.
|
||||
"""
|
||||
global memoize_caches, faked_scopes
|
||||
global memoize_caches
|
||||
|
||||
# memorize_caches must never be deleted, because the dicts will get lost in
|
||||
# the wrappers.
|
||||
for m in memoize_caches:
|
||||
m.clear()
|
||||
|
||||
faked_scopes = [] # TODO really needed anymore? weakrefs are gone...
|
||||
|
||||
|
||||
def memoize_default(default=None):
|
||||
""" This is a typical memoization decorator, BUT there is one difference:
|
||||
|
||||
Reference in New Issue
Block a user