1
0
forked from VimPlug/jedi

Document get_sys_path and change the signature of get_system_environment a bit

This commit is contained in:
Dave Halter
2018-04-15 16:11:46 +02:00
parent 22b0c0f1fe
commit ed2a0a8218
2 changed files with 15 additions and 12 deletions

View File

@@ -131,6 +131,7 @@ def time_cache(seconds):
def memoize_method(method):
"""A normal memoize function."""
@wraps(method)
def wrapper(self, *args, **kwargs):
cache_dict = self.__dict__.setdefault('_memoize_method_dct', {})
dct = cache_dict.setdefault(method, {})