diff options
author | hut <hut@lavabit.com> | 2012-01-20 20:46:10 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-01-20 20:46:10 +0100 |
commit | 5db94646ffdd492103a40a2e33758b1827032661 (patch) | |
tree | 0bb229c6c158ef1f27fb780ae93a2e4c0d4dcaaa | |
parent | c2b71f721ba4fec22e6b8135508e07cb56df3320 (diff) | |
download | ranger-5db94646ffdd492103a40a2e33758b1827032661.tar.gz |
ext.cached_function: Fixed
-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 |