about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-01-20 20:46:10 +0100
committerhut <hut@lavabit.com>2012-01-20 20:46:10 +0100
commit5db94646ffdd492103a40a2e33758b1827032661 (patch)
tree0bb229c6c158ef1f27fb780ae93a2e4c0d4dcaaa
parentc2b71f721ba4fec22e6b8135508e07cb56df3320 (diff)
downloadranger-5db94646ffdd492103a40a2e33758b1827032661.tar.gz
ext.cached_function: Fixed
-rw-r--r--ranger/ext/cached_function.py4
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
t; 2016-12-26 22:09:54 -0800 3716' href='/akkartik/mu/commit/html/real-files.mu.html?h=hlt&id=4c4d325ca8544f52bb305dbb46b1f8144c33c2af'>4c4d325c ^
d990e8f0 ^
805d58c6 ^
fe8bf967 ^
805d58c6 ^

4bb57a55 ^

d990e8f0 ^





e5c11a51 ^






















d990e8f0 ^


e5c11a51 ^
d990e8f0 ^
204dae92 ^




b301e0c0 ^
204dae92 ^







cdf28227 ^
204dae92 ^


d990e8f0 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79