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
evision' href='/akspecs/ranger/blame/test/tc_commandlist.py?h=v1.5.1&id=b3556b21e23eb3381b220e0d3319d94b3a89e0ac'>^
0bc410c5 ^
11ff42af ^
d8ea8d5f ^
0bc410c5 ^
11ff42af ^

0bc410c5 ^



11ff42af ^
0bc410c5 ^
11ff42af ^
d8ea8d5f ^
0bc410c5 ^

11ff42af ^
d8ea8d5f ^
0bc410c5 ^
698ba46a ^








ccd3f3c3 ^
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100