removed faked_scopes, was only necessary because of weakrefs.
This commit is contained in:
1 parent
e8ddc35a1b
commit
9b45ddcb7c
4 files changed
+1
-14
No files matched your search
+1
-4
@@ -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