diff options
-rw-r--r-- | ranger/ext/cached_function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/cached_function.py b/ranger/ext/cached_function.py index 00068583..4d9ded18 100644 --- a/ranger/ext/cached_function.py +++ b/ranger/ext/cached_function.py @@ -15,11 +15,11 @@ def cached_function(fnc): cache = {} - def inner_cached_function(self, *args): + def inner_cached_function(*args): try: return cache[args] except: - value = fnc(self, *args) + value = fnc(*args) cache[args] = value return value inner_cached_function._cache = cache |