From 5db94646ffdd492103a40a2e33758b1827032661 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 20 Jan 2012 20:46:10 +0100 Subject: ext.cached_function: Fixed --- ranger/ext/cached_function.py | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0