1
0
forked from VimPlug/jedi

removed faked_scopes, was only necessary because of weakrefs.

This commit is contained in:
David Halter
2012-12-12 21:31:41 +01:00
parent e8ddc35a1b
commit 9b45ddcb7c
4 changed files with 1 additions and 14 deletions

View File

@@ -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: